From 9c9b46e6648607c737bc50ce905327f6ff8029e4 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Wed, 30 Oct 2024 15:05:57 -0700 Subject: [PATCH] chatpers for full album test --- .../prebuilt_presets/test_music.py | 2 + .../unit/music/YouTube Full Albums.json | 42 +- .../unit/music/YouTube Full Albums.txt | 480 +++++++++++++++++- 3 files changed, 491 insertions(+), 33 deletions(-) diff --git a/tests/integration/prebuilt_presets/test_music.py b/tests/integration/prebuilt_presets/test_music.py index 53c308d6..6ef0ec0e 100644 --- a/tests/integration/prebuilt_presets/test_music.py +++ b/tests/integration/prebuilt_presets/test_music.py @@ -1,11 +1,13 @@ import pytest from expected_download import assert_expected_downloads from expected_transaction_log import assert_transaction_log_matches +from integration.plugins.conftest import mock_chapters_class from ytdl_sub.prebuilt_presets.music import MusicPresets from ytdl_sub.subscriptions.subscription import Subscription +@pytest.mark.usefixtures(mock_chapters_class.__name__) @pytest.mark.parametrize("music_preset", MusicPresets.preset_names) class TestPrebuiltMusicPresets: diff --git a/tests/resources/expected_downloads_summaries/unit/music/YouTube Full Albums.json b/tests/resources/expected_downloads_summaries/unit/music/YouTube Full Albums.json index 5cc6cc31..fabc51b6 100644 --- a/tests/resources/expected_downloads_summaries/unit/music/YouTube Full Albums.json +++ b/tests/resources/expected_downloads_summaries/unit/music/YouTube Full Albums.json @@ -1,19 +1,43 @@ { - ".ytdl-sub-subscription_test-download-archive.json": "e2e5ccd309d8f95fddd690e9417a140b", - "subscription_test/[2020] Mock Entry 20-1/01 - Mock Entry 20-1.mp3": "c967fcb589fca43fb3ae9038290e3a49", + ".ytdl-sub-subscription_test-download-archive.json": "a428f2d540b605d0804b99600372d5d1", + "subscription_test/[2020] Mock Entry 20-1/01 - " Intro.mp3": "c09c8590553141752697c6752667666a", + "subscription_test/[2020] Mock Entry 20-1/02 - " Part 1.mp3": "b25c7e1d9e614974ea255485414acc62", + "subscription_test/[2020] Mock Entry 20-1/03 - " Part 2.mp3": "3440ca7a156d8d8290e20854586f723a", + "subscription_test/[2020] Mock Entry 20-1/04 - " Part 3.mp3": "d093d2674a88b7e8f52edbf3629868ff", "subscription_test/[2020] Mock Entry 20-1/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7", - "subscription_test/[2020] Mock Entry 20-2/01 - Mock Entry 20-2.mp3": "5f22ce0cdaa93518786f2d68ff088a83", + "subscription_test/[2020] Mock Entry 20-2/01 - " Intro.mp3": "d2b61d59894df0e99169a32d8cec0b2b", + "subscription_test/[2020] Mock Entry 20-2/02 - " Part 1.mp3": "30971eafe14adf282784462e1cedf822", + "subscription_test/[2020] Mock Entry 20-2/03 - " Part 2.mp3": "9e165ed71adc64a88192e686b97a0df3", + "subscription_test/[2020] Mock Entry 20-2/04 - " Part 3.mp3": "2e6851853e3634eaf52cc9258d8e375a", "subscription_test/[2020] Mock Entry 20-2/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7", - "subscription_test/[2020] Mock Entry 20-3/01 - Mock Entry 20-3.mp3": "645dedee58a794da96e0e29129e90744", + "subscription_test/[2020] Mock Entry 20-3/01 - " Intro.mp3": "915b052131b2c50bc3b91fee23a58da5", + "subscription_test/[2020] Mock Entry 20-3/02 - " Part 1.mp3": "030e82f87f761f75ad19adfc4dbf1063", + "subscription_test/[2020] Mock Entry 20-3/03 - " Part 2.mp3": "810c579dac3632e1155911a6cb4ef506", + "subscription_test/[2020] Mock Entry 20-3/04 - " Part 3.mp3": "42a1ce49b8217dbe614cbb5eee5f552c", "subscription_test/[2020] Mock Entry 20-3/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7", - "subscription_test/[2020] Mock Entry 20-4/01 - Mock Entry 20-4.mp3": "98161c8844f491a30b76a8ad436ea062", + "subscription_test/[2020] Mock Entry 20-4/01 - " Intro.mp3": "bf0d2b91e2c7cc136dc0a56be94e0d7e", + "subscription_test/[2020] Mock Entry 20-4/02 - " Part 1.mp3": "eb8c0e34fef88b940f328956c03a2ae0", + "subscription_test/[2020] Mock Entry 20-4/03 - " Part 2.mp3": "23bcef6856e58d942cb83372434f8525", + "subscription_test/[2020] Mock Entry 20-4/04 - " Part 3.mp3": "08f50f77e9654362724a6e737f44306d", "subscription_test/[2020] Mock Entry 20-4/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7", - "subscription_test/[2020] Mock Entry 20-5/01 - Mock Entry 20-5.mp3": "7c18a92f2f06a0409f5e4289a014ddf1", + "subscription_test/[2020] Mock Entry 20-5/01 - " Intro.mp3": "01f501bade24e3cab1fb6b58a6d2a8ac", + "subscription_test/[2020] Mock Entry 20-5/02 - " Part 1.mp3": "c5a0b461e1e1a67b028c05a9a3a774d2", + "subscription_test/[2020] Mock Entry 20-5/03 - " Part 2.mp3": "edda09bc84916663bc946696f6cc5ce0", + "subscription_test/[2020] Mock Entry 20-5/04 - " Part 3.mp3": "083a8482ee343b8e71fd4ff0710649fe", "subscription_test/[2020] Mock Entry 20-5/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7", - "subscription_test/[2020] Mock Entry 20-6/01 - Mock Entry 20-6.mp3": "0869ae0c4d537c5d50769eb73d5a65c9", + "subscription_test/[2020] Mock Entry 20-6/01 - " Intro.mp3": "674f23188f8808e3b44c116e41594e76", + "subscription_test/[2020] Mock Entry 20-6/02 - " Part 1.mp3": "d8fc85cfade392b78fcf66670905a2d1", + "subscription_test/[2020] Mock Entry 20-6/03 - " Part 2.mp3": "23c7ac598d181ea16b945662beeae11e", + "subscription_test/[2020] Mock Entry 20-6/04 - " Part 3.mp3": "1dd37e65243aa545a55de73cd480580a", "subscription_test/[2020] Mock Entry 20-6/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7", - "subscription_test/[2020] Mock Entry 20-7/01 - Mock Entry 20-7.mp3": "65d8c2d2f7414b0828dff0e60d23e66f", + "subscription_test/[2020] Mock Entry 20-7/01 - " Intro.mp3": "c42c845f3028d910137af63af04c46a0", + "subscription_test/[2020] Mock Entry 20-7/02 - " Part 1.mp3": "514db0c82a210b9ea886e6ee2ab9327f", + "subscription_test/[2020] Mock Entry 20-7/03 - " Part 2.mp3": "112b6018f05e1aa62518001b61de0123", + "subscription_test/[2020] Mock Entry 20-7/04 - " Part 3.mp3": "5e1fb5d017a54b0156fa96ad71241f00", "subscription_test/[2020] Mock Entry 20-7/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7", - "subscription_test/[2021] Mock Entry 21-1/01 - Mock Entry 21-1.mp3": "ad3e8f379cae386dd6d76d5af4552d59", + "subscription_test/[2021] Mock Entry 21-1/01 - " Intro.mp3": "c1718b35ec1ab0b83c519acd30f32927", + "subscription_test/[2021] Mock Entry 21-1/02 - " Part 1.mp3": "4fed9885e3ce0f2d1ae0134c2b22ff08", + "subscription_test/[2021] Mock Entry 21-1/03 - " Part 2.mp3": "240774666c7636f9490ab98a77ef75bb", + "subscription_test/[2021] Mock Entry 21-1/04 - " Part 3.mp3": "0087935c3158fb4151dac0920dd84002", "subscription_test/[2021] Mock Entry 21-1/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7" } \ No newline at end of file diff --git a/tests/resources/transaction_log_summaries/unit/music/YouTube Full Albums.txt b/tests/resources/transaction_log_summaries/unit/music/YouTube Full Albums.txt index e1a38151..d9d428e4 100644 --- a/tests/resources/transaction_log_summaries/unit/music/YouTube Full Albums.txt +++ b/tests/resources/transaction_log_summaries/unit/music/YouTube Full Albums.txt @@ -3,7 +3,10 @@ Files created: {output_directory} .ytdl-sub-subscription_test-download-archive.json {output_directory}/subscription_test/[2020] Mock Entry 20-1 - 01 - Mock Entry 20-1.mp3 + 01 - " Intro.mp3 + From Chapter Split: + Source Title: Mock Entry 20-1 + Segment: 0:00 - 0:07 Music Tags: album: Mock Entry 20-1 albumartist: subscription_test @@ -13,13 +16,67 @@ Files created: date: 2020-08-08 genres: Unset original_date: 2020-08-08 - title: Mock Entry 20-1 + title: " Intro track: 1 - tracktotal: 1 + tracktotal: 4 + year: 2020 + 02 - " Part 1.mp3 + From Chapter Split: + Source Title: Mock Entry 20-1 + Segment: 0:07 - 0:13 + Music Tags: + album: Mock Entry 20-1 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-08 + genres: Unset + original_date: 2020-08-08 + title: " Part 1 + track: 2 + tracktotal: 4 + year: 2020 + 03 - " Part 2.mp3 + From Chapter Split: + Source Title: Mock Entry 20-1 + Segment: 0:13 - 0:19 + Music Tags: + album: Mock Entry 20-1 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-08 + genres: Unset + original_date: 2020-08-08 + title: " Part 2 + track: 3 + tracktotal: 4 + year: 2020 + 04 - " Part 3.mp3 + From Chapter Split: + Source Title: Mock Entry 20-1 + Segment: 0:19 - 0:42 + Music Tags: + album: Mock Entry 20-1 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-08 + genres: Unset + original_date: 2020-08-08 + title: " Part 3 + track: 4 + tracktotal: 4 year: 2020 folder.jpg {output_directory}/subscription_test/[2020] Mock Entry 20-2 - 01 - Mock Entry 20-2.mp3 + 01 - " Intro.mp3 + From Chapter Split: + Source Title: Mock Entry 20-2 + Segment: 0:00 - 0:07 Music Tags: album: Mock Entry 20-2 albumartist: subscription_test @@ -29,13 +86,67 @@ Files created: date: 2020-08-08 genres: Unset original_date: 2020-08-08 - title: Mock Entry 20-2 + title: " Intro track: 1 - tracktotal: 1 + tracktotal: 4 + year: 2020 + 02 - " Part 1.mp3 + From Chapter Split: + Source Title: Mock Entry 20-2 + Segment: 0:07 - 0:13 + Music Tags: + album: Mock Entry 20-2 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-08 + genres: Unset + original_date: 2020-08-08 + title: " Part 1 + track: 2 + tracktotal: 4 + year: 2020 + 03 - " Part 2.mp3 + From Chapter Split: + Source Title: Mock Entry 20-2 + Segment: 0:13 - 0:19 + Music Tags: + album: Mock Entry 20-2 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-08 + genres: Unset + original_date: 2020-08-08 + title: " Part 2 + track: 3 + tracktotal: 4 + year: 2020 + 04 - " Part 3.mp3 + From Chapter Split: + Source Title: Mock Entry 20-2 + Segment: 0:19 - 0:42 + Music Tags: + album: Mock Entry 20-2 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-08 + genres: Unset + original_date: 2020-08-08 + title: " Part 3 + track: 4 + tracktotal: 4 year: 2020 folder.jpg {output_directory}/subscription_test/[2020] Mock Entry 20-3 - 01 - Mock Entry 20-3.mp3 + 01 - " Intro.mp3 + From Chapter Split: + Source Title: Mock Entry 20-3 + Segment: 0:00 - 0:07 Music Tags: album: Mock Entry 20-3 albumartist: subscription_test @@ -45,13 +156,67 @@ Files created: date: 2020-08-07 genres: Unset original_date: 2020-08-07 - title: Mock Entry 20-3 + title: " Intro track: 1 - tracktotal: 1 + tracktotal: 4 + year: 2020 + 02 - " Part 1.mp3 + From Chapter Split: + Source Title: Mock Entry 20-3 + Segment: 0:07 - 0:13 + Music Tags: + album: Mock Entry 20-3 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-07 + genres: Unset + original_date: 2020-08-07 + title: " Part 1 + track: 2 + tracktotal: 4 + year: 2020 + 03 - " Part 2.mp3 + From Chapter Split: + Source Title: Mock Entry 20-3 + Segment: 0:13 - 0:19 + Music Tags: + album: Mock Entry 20-3 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-07 + genres: Unset + original_date: 2020-08-07 + title: " Part 2 + track: 3 + tracktotal: 4 + year: 2020 + 04 - " Part 3.mp3 + From Chapter Split: + Source Title: Mock Entry 20-3 + Segment: 0:19 - 0:42 + Music Tags: + album: Mock Entry 20-3 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-07 + genres: Unset + original_date: 2020-08-07 + title: " Part 3 + track: 4 + tracktotal: 4 year: 2020 folder.jpg {output_directory}/subscription_test/[2020] Mock Entry 20-4 - 01 - Mock Entry 20-4.mp3 + 01 - " Intro.mp3 + From Chapter Split: + Source Title: Mock Entry 20-4 + Segment: 0:00 - 0:07 Music Tags: album: Mock Entry 20-4 albumartist: subscription_test @@ -61,13 +226,67 @@ Files created: date: 2020-08-06 genres: Unset original_date: 2020-08-06 - title: Mock Entry 20-4 + title: " Intro track: 1 - tracktotal: 1 + tracktotal: 4 + year: 2020 + 02 - " Part 1.mp3 + From Chapter Split: + Source Title: Mock Entry 20-4 + Segment: 0:07 - 0:13 + Music Tags: + album: Mock Entry 20-4 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-06 + genres: Unset + original_date: 2020-08-06 + title: " Part 1 + track: 2 + tracktotal: 4 + year: 2020 + 03 - " Part 2.mp3 + From Chapter Split: + Source Title: Mock Entry 20-4 + Segment: 0:13 - 0:19 + Music Tags: + album: Mock Entry 20-4 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-06 + genres: Unset + original_date: 2020-08-06 + title: " Part 2 + track: 3 + tracktotal: 4 + year: 2020 + 04 - " Part 3.mp3 + From Chapter Split: + Source Title: Mock Entry 20-4 + Segment: 0:19 - 0:42 + Music Tags: + album: Mock Entry 20-4 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-08-06 + genres: Unset + original_date: 2020-08-06 + title: " Part 3 + track: 4 + tracktotal: 4 year: 2020 folder.jpg {output_directory}/subscription_test/[2020] Mock Entry 20-5 - 01 - Mock Entry 20-5.mp3 + 01 - " Intro.mp3 + From Chapter Split: + Source Title: Mock Entry 20-5 + Segment: 0:00 - 0:07 Music Tags: album: Mock Entry 20-5 albumartist: subscription_test @@ -77,13 +296,67 @@ Files created: date: 2020-07-06 genres: Unset original_date: 2020-07-06 - title: Mock Entry 20-5 + title: " Intro track: 1 - tracktotal: 1 + tracktotal: 4 + year: 2020 + 02 - " Part 1.mp3 + From Chapter Split: + Source Title: Mock Entry 20-5 + Segment: 0:07 - 0:13 + Music Tags: + album: Mock Entry 20-5 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-07-06 + genres: Unset + original_date: 2020-07-06 + title: " Part 1 + track: 2 + tracktotal: 4 + year: 2020 + 03 - " Part 2.mp3 + From Chapter Split: + Source Title: Mock Entry 20-5 + Segment: 0:13 - 0:19 + Music Tags: + album: Mock Entry 20-5 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-07-06 + genres: Unset + original_date: 2020-07-06 + title: " Part 2 + track: 3 + tracktotal: 4 + year: 2020 + 04 - " Part 3.mp3 + From Chapter Split: + Source Title: Mock Entry 20-5 + Segment: 0:19 - 0:42 + Music Tags: + album: Mock Entry 20-5 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-07-06 + genres: Unset + original_date: 2020-07-06 + title: " Part 3 + track: 4 + tracktotal: 4 year: 2020 folder.jpg {output_directory}/subscription_test/[2020] Mock Entry 20-6 - 01 - Mock Entry 20-6.mp3 + 01 - " Intro.mp3 + From Chapter Split: + Source Title: Mock Entry 20-6 + Segment: 0:00 - 0:07 Music Tags: album: Mock Entry 20-6 albumartist: subscription_test @@ -93,13 +366,67 @@ Files created: date: 2020-07-06 genres: Unset original_date: 2020-07-06 - title: Mock Entry 20-6 + title: " Intro track: 1 - tracktotal: 1 + tracktotal: 4 + year: 2020 + 02 - " Part 1.mp3 + From Chapter Split: + Source Title: Mock Entry 20-6 + Segment: 0:07 - 0:13 + Music Tags: + album: Mock Entry 20-6 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-07-06 + genres: Unset + original_date: 2020-07-06 + title: " Part 1 + track: 2 + tracktotal: 4 + year: 2020 + 03 - " Part 2.mp3 + From Chapter Split: + Source Title: Mock Entry 20-6 + Segment: 0:13 - 0:19 + Music Tags: + album: Mock Entry 20-6 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-07-06 + genres: Unset + original_date: 2020-07-06 + title: " Part 2 + track: 3 + tracktotal: 4 + year: 2020 + 04 - " Part 3.mp3 + From Chapter Split: + Source Title: Mock Entry 20-6 + Segment: 0:19 - 0:42 + Music Tags: + album: Mock Entry 20-6 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-07-06 + genres: Unset + original_date: 2020-07-06 + title: " Part 3 + track: 4 + tracktotal: 4 year: 2020 folder.jpg {output_directory}/subscription_test/[2020] Mock Entry 20-7 - 01 - Mock Entry 20-7.mp3 + 01 - " Intro.mp3 + From Chapter Split: + Source Title: Mock Entry 20-7 + Segment: 0:00 - 0:07 Music Tags: album: Mock Entry 20-7 albumartist: subscription_test @@ -109,13 +436,67 @@ Files created: date: 2020-06-06 genres: Unset original_date: 2020-06-06 - title: Mock Entry 20-7 + title: " Intro track: 1 - tracktotal: 1 + tracktotal: 4 + year: 2020 + 02 - " Part 1.mp3 + From Chapter Split: + Source Title: Mock Entry 20-7 + Segment: 0:07 - 0:13 + Music Tags: + album: Mock Entry 20-7 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-06-06 + genres: Unset + original_date: 2020-06-06 + title: " Part 1 + track: 2 + tracktotal: 4 + year: 2020 + 03 - " Part 2.mp3 + From Chapter Split: + Source Title: Mock Entry 20-7 + Segment: 0:13 - 0:19 + Music Tags: + album: Mock Entry 20-7 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-06-06 + genres: Unset + original_date: 2020-06-06 + title: " Part 2 + track: 3 + tracktotal: 4 + year: 2020 + 04 - " Part 3.mp3 + From Chapter Split: + Source Title: Mock Entry 20-7 + Segment: 0:19 - 0:42 + Music Tags: + album: Mock Entry 20-7 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2020-06-06 + genres: Unset + original_date: 2020-06-06 + title: " Part 3 + track: 4 + tracktotal: 4 year: 2020 folder.jpg {output_directory}/subscription_test/[2021] Mock Entry 21-1 - 01 - Mock Entry 21-1.mp3 + 01 - " Intro.mp3 + From Chapter Split: + Source Title: Mock Entry 21-1 + Segment: 0:00 - 0:07 Music Tags: album: Mock Entry 21-1 albumartist: subscription_test @@ -125,8 +506,59 @@ Files created: date: 2021-08-08 genres: Unset original_date: 2021-08-08 - title: Mock Entry 21-1 + title: " Intro track: 1 - tracktotal: 1 + tracktotal: 4 + year: 2021 + 02 - " Part 1.mp3 + From Chapter Split: + Source Title: Mock Entry 21-1 + Segment: 0:07 - 0:13 + Music Tags: + album: Mock Entry 21-1 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2021-08-08 + genres: Unset + original_date: 2021-08-08 + title: " Part 1 + track: 2 + tracktotal: 4 + year: 2021 + 03 - " Part 2.mp3 + From Chapter Split: + Source Title: Mock Entry 21-1 + Segment: 0:13 - 0:19 + Music Tags: + album: Mock Entry 21-1 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2021-08-08 + genres: Unset + original_date: 2021-08-08 + title: " Part 2 + track: 3 + tracktotal: 4 + year: 2021 + 04 - " Part 3.mp3 + From Chapter Split: + Source Title: Mock Entry 21-1 + Segment: 0:19 - 0:42 + Music Tags: + album: Mock Entry 21-1 + albumartist: subscription_test + albumartists: subscription_test + artist: subscription_test + artists: subscription_test + date: 2021-08-08 + genres: Unset + original_date: 2021-08-08 + title: " Part 3 + track: 4 + tracktotal: 4 year: 2021 folder.jpg \ No newline at end of file