mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-10-29 18:00:15 +00:00
Update metadata test
This commit is contained in:
14
test/list.txt
Normal file
14
test/list.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
https://open.spotify.com/track/6pav0KCJLInt6cjZuVJBI0
|
||||
https://open.spotify.com/track/51VAe9ZwidLP0JDaL5p0cp
|
||||
https://open.spotify.com/track/2YlYHoXimSTWxXKgN3eX2t
|
||||
https://open.spotify.com/track/0pkWgz2RWfYFzi8v7AOldJ
|
||||
https://open.spotify.com/track/0mZp2yHD66nIfwhrYn0mob
|
||||
https://open.spotify.com/track/6hCMKNQR8XZtGlZcrS9ZoW
|
||||
https://open.spotify.com/track/7rw29NRtmX0jIUCWmZuM79
|
||||
https://open.spotify.com/track/3LbbsMEynDkG1U2l8XzI0H
|
||||
https://open.spotify.com/track/5XLLcnfznZicerhPdTVE5z
|
||||
https://open.spotify.com/track/1ahUNcFxz9RCKGYHblBdoq
|
||||
https://open.spotify.com/track/3SFQkiIAhXvAruV9aC6ZGd
|
||||
https://open.spotify.com/track/6katJVSQg5DvCQZnn37FlU
|
||||
https://open.spotify.com/track/6cnT8D9rlhREOtgl6wG8dx
|
||||
https://open.spotify.com/track/52BUOdNI2TneBPq4EFOtAy
|
||||
@@ -50,7 +50,8 @@ def test_metadata():
|
||||
content = spotdl.go_pafy(raw_song)
|
||||
music_file = spotdl.misc.generate_filename(content.title)
|
||||
music_file = spotdl.misc.fix_decoding(music_file)
|
||||
output_song = music_file + spotdl.args.output_ext
|
||||
meta_tags = spotdl.generate_metadata(raw_song)
|
||||
metadata = spotdl.metadata.embed(output_song, meta_tags)
|
||||
output_song = music_file + spotdl.args.output_ext
|
||||
spotdl.metadata.embed(output_song, meta_tags)
|
||||
metadata = spotdl.check_exists(music_file, raw_song)
|
||||
assert metadata == expect_metadata
|
||||
|
||||
Reference in New Issue
Block a user