tests
This commit is contained in:
parent
fcfd954cff
commit
c8845c62cc
5 changed files with 289 additions and 10 deletions
|
|
@ -24,18 +24,14 @@ class TestPrebuiltMusicPresets:
|
|||
music_preset,
|
||||
],
|
||||
"overrides": {
|
||||
"subscription_value": "https://your.name.here",
|
||||
"url": "https://your.name.here",
|
||||
"music_directory": output_directory,
|
||||
},
|
||||
}
|
||||
|
||||
num_urls = 1
|
||||
if music_preset in {"YouTube Releases", "YouTube Full Albums"}:
|
||||
del preset_dict["overrides"]["subscription_value"]
|
||||
preset_dict["overrides"]["subscription_array"] = [
|
||||
"https://your.name.here",
|
||||
"https://your.name.here.2",
|
||||
]
|
||||
preset_dict["overrides"]["url2"] = "https://your.name.here.2"
|
||||
num_urls = 2
|
||||
elif music_preset == "SoundCloud Discography":
|
||||
num_urls = 2 # simulate albums + tracks
|
||||
|
|
|
|||
|
|
@ -1 +1,19 @@
|
|||
{}
|
||||
{
|
||||
".ytdl-sub-subscription_test-download-archive.json": "e2e5ccd309d8f95fddd690e9417a140b",
|
||||
"subscription_test/[2020] Mock Entry 20-1/01 - Mock Entry 20-1.mp3": "c967fcb589fca43fb3ae9038290e3a49",
|
||||
"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/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7",
|
||||
"subscription_test/[2020] Mock Entry 20-3/01 - Mock Entry 20-3.mp3": "645dedee58a794da96e0e29129e90744",
|
||||
"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/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7",
|
||||
"subscription_test/[2020] Mock Entry 20-5/01 - Mock Entry 20-5.mp3": "7c18a92f2f06a0409f5e4289a014ddf1",
|
||||
"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/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7",
|
||||
"subscription_test/[2020] Mock Entry 20-7/01 - Mock Entry 20-7.mp3": "65d8c2d2f7414b0828dff0e60d23e66f",
|
||||
"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/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7"
|
||||
}
|
||||
|
|
@ -1 +1,14 @@
|
|||
{}
|
||||
{
|
||||
".ytdl-sub-subscription_test-download-archive.json": "82b90b449dfd345ea734cc85990246e5",
|
||||
"subscription_test/[2020] Download First/02 - Mock Entry 20-1.mp3": "f7169b5892ebb4285c33ee153abdbfdc",
|
||||
"subscription_test/[2020] Download First/03 - Mock Entry 20-2.mp3": "7ffd6a9e71c7f327e8f9765ad4645a0e",
|
||||
"subscription_test/[2020] Download First/04 - Mock Entry 20-3.mp3": "d3718a85ccd6cd03634cba94927496a6",
|
||||
"subscription_test/[2020] Download First/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7",
|
||||
"subscription_test/[2020] Download Second/02 - Mock Entry 20-4.mp3": "7d860070bcef126eb4677303c69e09d7",
|
||||
"subscription_test/[2020] Download Second/03 - Mock Entry 20-5.mp3": "dc47b62dff859d147f9d96d5efa130c1",
|
||||
"subscription_test/[2020] Download Second/04 - Mock Entry 20-6.mp3": "3fab293854b6abd1f0e14e7ca7ea34dc",
|
||||
"subscription_test/[2020] Download Second/05 - Mock Entry 20-7.mp3": "acebc597556ead820434b5d796d6dc50",
|
||||
"subscription_test/[2020] Download Second/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7",
|
||||
"subscription_test/[2021] Download First/01 - Mock Entry 21-1.mp3": "6b9c7da5acce22b180fd42a463806a68",
|
||||
"subscription_test/[2021] Download First/folder.jpg": "e80c508c4818454300133fe1dc1a9cd7"
|
||||
}
|
||||
|
|
@ -1 +1,132 @@
|
|||
No new, modified, or removed files in '{output_directory}'
|
||||
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
|
||||
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: Mock Entry 20-1
|
||||
track: 1
|
||||
tracktotal: 1
|
||||
year: 2020
|
||||
folder.jpg
|
||||
{output_directory}/subscription_test/[2020] Mock Entry 20-2
|
||||
01 - Mock Entry 20-2.mp3
|
||||
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: Mock Entry 20-2
|
||||
track: 1
|
||||
tracktotal: 1
|
||||
year: 2020
|
||||
folder.jpg
|
||||
{output_directory}/subscription_test/[2020] Mock Entry 20-3
|
||||
01 - Mock Entry 20-3.mp3
|
||||
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: Mock Entry 20-3
|
||||
track: 1
|
||||
tracktotal: 1
|
||||
year: 2020
|
||||
folder.jpg
|
||||
{output_directory}/subscription_test/[2020] Mock Entry 20-4
|
||||
01 - Mock Entry 20-4.mp3
|
||||
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: Mock Entry 20-4
|
||||
track: 1
|
||||
tracktotal: 1
|
||||
year: 2020
|
||||
folder.jpg
|
||||
{output_directory}/subscription_test/[2020] Mock Entry 20-5
|
||||
01 - Mock Entry 20-5.mp3
|
||||
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: Mock Entry 20-5
|
||||
track: 1
|
||||
tracktotal: 1
|
||||
year: 2020
|
||||
folder.jpg
|
||||
{output_directory}/subscription_test/[2020] Mock Entry 20-6
|
||||
01 - Mock Entry 20-6.mp3
|
||||
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: Mock Entry 20-6
|
||||
track: 1
|
||||
tracktotal: 1
|
||||
year: 2020
|
||||
folder.jpg
|
||||
{output_directory}/subscription_test/[2020] Mock Entry 20-7
|
||||
01 - Mock Entry 20-7.mp3
|
||||
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: Mock Entry 20-7
|
||||
track: 1
|
||||
tracktotal: 1
|
||||
year: 2020
|
||||
folder.jpg
|
||||
{output_directory}/subscription_test/[2021] Mock Entry 21-1
|
||||
01 - Mock Entry 21-1.mp3
|
||||
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: Mock Entry 21-1
|
||||
track: 1
|
||||
tracktotal: 1
|
||||
year: 2021
|
||||
folder.jpg
|
||||
|
|
@ -1 +1,122 @@
|
|||
No new, modified, or removed files in '{output_directory}'
|
||||
Files created:
|
||||
----------------------------------------
|
||||
{output_directory}
|
||||
.ytdl-sub-subscription_test-download-archive.json
|
||||
{output_directory}/subscription_test/[2020] Download First
|
||||
02 - Mock Entry 20-1.mp3
|
||||
Music Tags:
|
||||
album: Download First
|
||||
albumartist: subscription_test
|
||||
albumartists: subscription_test
|
||||
artist: subscription_test
|
||||
artists: subscription_test
|
||||
date: 2020-08-08
|
||||
genres: Unset
|
||||
original_date: 2020-08-08
|
||||
title: Mock Entry 20-1
|
||||
track: 2
|
||||
tracktotal: 4
|
||||
year: 2020
|
||||
03 - Mock Entry 20-2.mp3
|
||||
Music Tags:
|
||||
album: Download First
|
||||
albumartist: subscription_test
|
||||
albumartists: subscription_test
|
||||
artist: subscription_test
|
||||
artists: subscription_test
|
||||
date: 2020-08-08
|
||||
genres: Unset
|
||||
original_date: 2020-08-08
|
||||
title: Mock Entry 20-2
|
||||
track: 3
|
||||
tracktotal: 4
|
||||
year: 2020
|
||||
04 - Mock Entry 20-3.mp3
|
||||
Music Tags:
|
||||
album: Download First
|
||||
albumartist: subscription_test
|
||||
albumartists: subscription_test
|
||||
artist: subscription_test
|
||||
artists: subscription_test
|
||||
date: 2020-08-07
|
||||
genres: Unset
|
||||
original_date: 2020-08-07
|
||||
title: Mock Entry 20-3
|
||||
track: 4
|
||||
tracktotal: 4
|
||||
year: 2020
|
||||
folder.jpg
|
||||
{output_directory}/subscription_test/[2020] Download Second
|
||||
02 - Mock Entry 20-4.mp3
|
||||
Music Tags:
|
||||
album: Download Second
|
||||
albumartist: subscription_test
|
||||
albumartists: subscription_test
|
||||
artist: subscription_test
|
||||
artists: subscription_test
|
||||
date: 2020-08-06
|
||||
genres: Unset
|
||||
original_date: 2020-08-06
|
||||
title: Mock Entry 20-4
|
||||
track: 2
|
||||
tracktotal: 5
|
||||
year: 2020
|
||||
03 - Mock Entry 20-5.mp3
|
||||
Music Tags:
|
||||
album: Download Second
|
||||
albumartist: subscription_test
|
||||
albumartists: subscription_test
|
||||
artist: subscription_test
|
||||
artists: subscription_test
|
||||
date: 2020-07-06
|
||||
genres: Unset
|
||||
original_date: 2020-07-06
|
||||
title: Mock Entry 20-5
|
||||
track: 3
|
||||
tracktotal: 5
|
||||
year: 2020
|
||||
04 - Mock Entry 20-6.mp3
|
||||
Music Tags:
|
||||
album: Download Second
|
||||
albumartist: subscription_test
|
||||
albumartists: subscription_test
|
||||
artist: subscription_test
|
||||
artists: subscription_test
|
||||
date: 2020-07-06
|
||||
genres: Unset
|
||||
original_date: 2020-07-06
|
||||
title: Mock Entry 20-6
|
||||
track: 4
|
||||
tracktotal: 5
|
||||
year: 2020
|
||||
05 - Mock Entry 20-7.mp3
|
||||
Music Tags:
|
||||
album: Download Second
|
||||
albumartist: subscription_test
|
||||
albumartists: subscription_test
|
||||
artist: subscription_test
|
||||
artists: subscription_test
|
||||
date: 2020-06-06
|
||||
genres: Unset
|
||||
original_date: 2020-06-06
|
||||
title: Mock Entry 20-7
|
||||
track: 5
|
||||
tracktotal: 5
|
||||
year: 2020
|
||||
folder.jpg
|
||||
{output_directory}/subscription_test/[2021] Download First
|
||||
01 - Mock Entry 21-1.mp3
|
||||
Music Tags:
|
||||
album: Download First
|
||||
albumartist: subscription_test
|
||||
albumartists: subscription_test
|
||||
artist: subscription_test
|
||||
artists: subscription_test
|
||||
date: 2021-08-08
|
||||
genres: Unset
|
||||
original_date: 2021-08-08
|
||||
title: Mock Entry 21-1
|
||||
track: 1
|
||||
tracktotal: 4
|
||||
year: 2021
|
||||
folder.jpg
|
||||
Loading…
Reference in a new issue