From f4e478ca3d0ac648ad38b2f80b80d7b987a52235 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Fri, 27 Oct 2023 19:40:38 -0700 Subject: [PATCH] worst --- tests/e2e/plugins/test_match_filters.py | 2 ++ .../test_match_filters_partial.json | 6 +++--- .../test_match_filters_partial.txt | 18 +++++++++--------- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/tests/e2e/plugins/test_match_filters.py b/tests/e2e/plugins/test_match_filters.py index fc0b0aad..2e669319 100644 --- a/tests/e2e/plugins/test_match_filters.py +++ b/tests/e2e/plugins/test_match_filters.py @@ -11,6 +11,7 @@ def preset_dict(output_directory): "preset": "Jellyfin Music Videos", "download": "https://www.youtube.com/watch?v=2zYF9JLHDmA", "output_options": {"output_directory": output_directory}, + "format": "worst[ext=mp4]", # download the worst format so it is fast "ytdl_options": { "postprocessor_args": {"ffmpeg": ["-bitexact"]}, # Must add this for reproducibility }, @@ -24,6 +25,7 @@ def playlist_preset_dict(output_directory): "preset": "Jellyfin Music Videos", "download": "https://www.youtube.com/playlist?list=PL5BC0FC26BECA5A35", "output_options": {"output_directory": output_directory}, + "format": "worst[ext=mp4]", # download the worst format so it is fast "ytdl_options": { "postprocessor_args": {"ffmpeg": ["-bitexact"]}, # Must add this for reproducibility }, diff --git a/tests/resources/expected_downloads_summaries/plugins/match_filters/test_match_filters_partial.json b/tests/resources/expected_downloads_summaries/plugins/match_filters/test_match_filters_partial.json index 8e89c2bc..1777b55a 100644 --- a/tests/resources/expected_downloads_summaries/plugins/match_filters/test_match_filters_partial.json +++ b/tests/resources/expected_downloads_summaries/plugins/match_filters/test_match_filters_partial.json @@ -1,6 +1,6 @@ { - ".ytdl-sub-match_filter_test-download-archive.json": "11d548b31fdb1aa0f7a1e9da6dde32ea", + ".ytdl-sub-match_filter_test-download-archive.json": "30f10646149d9eea4eb970749f352f7d", "match_filter_test/Jesse's Minecraft Server [Trailer - Mar.21].jpg": "e7830aa8a64b0cde65ba3f7e5fc56530", - "match_filter_test/Jesse's Minecraft Server [Trailer - Mar.21].nfo": "d85f4500bb5d8a2425d734a23b5a944c", - "match_filter_test/Jesse's Minecraft Server [Trailer - Mar.21].webm": "7ea65c0209b61ff586e5d7e68dda40b1" + "match_filter_test/Jesse's Minecraft Server [Trailer - Mar.21].mp4": "e6c9f7a30b575a343fba66501e65740b", + "match_filter_test/Jesse's Minecraft Server [Trailer - Mar.21].nfo": "d85f4500bb5d8a2425d734a23b5a944c" } \ No newline at end of file diff --git a/tests/resources/transaction_log_summaries/plugins/match_filters/test_match_filters_partial.txt b/tests/resources/transaction_log_summaries/plugins/match_filters/test_match_filters_partial.txt index f05831ce..89645782 100644 --- a/tests/resources/transaction_log_summaries/plugins/match_filters/test_match_filters_partial.txt +++ b/tests/resources/transaction_log_summaries/plugins/match_filters/test_match_filters_partial.txt @@ -4,6 +4,14 @@ Files created: .ytdl-sub-match_filter_test-download-archive.json {output_directory}/match_filter_test Jesse's Minecraft Server [Trailer - Mar.21].jpg + Jesse's Minecraft Server [Trailer - Mar.21].mp4 + Video Tags: + album: Music Videos + artist: match_filter_test + genre: ytdl-sub + premiered: 2011-03-21 + title: Jesse's Minecraft Server [Trailer - Mar.21] + year: 2011 Jesse's Minecraft Server [Trailer - Mar.21].nfo NFO tags: musicvideo: @@ -11,12 +19,4 @@ Files created: artist: match_filter_test genre: ytdl-sub premiered: 2011-03-21 - title: Jesse's Minecraft Server [Trailer - Mar.21] - Jesse's Minecraft Server [Trailer - Mar.21].webm - Video Tags: - album: Music Videos - artist: match_filter_test - genre: ytdl-sub - premiered: 2011-03-21 - title: Jesse's Minecraft Server [Trailer - Mar.21] - year: 2011 \ No newline at end of file + title: Jesse's Minecraft Server [Trailer - Mar.21] \ No newline at end of file