[Enhancement] Add Media Center support for videos uploaded on the same day (#221)

* Added upload date index field to media_items

* Added incrementing index for upload dates

* Added media item upload date index to download option builder

* Added new season_episode_index_from_date to UI; updated parser

* Improve support for channels

* Hopefully fixed flakey test
This commit is contained in:
Kieran authored and GitHub committed 2024-05-02 11:06:10 -07:00
1 parent 112c6a4f14
commit 04b14719ee
10 files changed
+261 -16

No files matched your search

@@ -106,7 +106,7 @@ defmodule Pinchflat.Metadata.MetadataParserTest do
:ok = File.cp(thumbnail_filepath_fixture(), thumbnail_filepath)
on_exit(fn -> File.rm(thumbnail_filepath) end)
on_exit(fn -> File.rm_rf(thumbnail_filepath) end)
{:ok, filepath: thumbnail_filepath}
end
@@ -127,7 +127,7 @@ defmodule Pinchflat.Metadata.MetadataParserTest do
end
test "doesn't include thumbnail if the file doesn't exist on-disk", %{metadata: metadata, filepath: filepath} do
File.rm(filepath)
File.rm_rf(filepath)
result = Parser.parse_for_media_item(metadata)
@@ -156,7 +156,7 @@ defmodule Pinchflat.Metadata.MetadataParserTest do
infojson_filepath = metadata["infojson_filename"]
:ok = File.cp(infojson_filepath_fixture(), infojson_filepath)
on_exit(fn -> File.rm(infojson_filepath) end)
on_exit(fn -> File.rm_rf(infojson_filepath) end)
{:ok, filepath: infojson_filepath}
end
@@ -168,7 +168,7 @@ defmodule Pinchflat.Metadata.MetadataParserTest do
end
test "doesn't include metadata if the file doesn't exist on-disk", %{metadata: metadata, filepath: filepath} do
File.rm(filepath)
File.rm_rf(filepath)
result = Parser.parse_for_media_item(metadata)