From 9b5880d8c9eb70dd01d677c111c4301258d38b16 Mon Sep 17 00:00:00 2001 From: Javinator9889 Date: Wed, 9 Oct 2019 14:06:59 +0200 Subject: [PATCH] In Tests, pass the downloader attribute to the class "YouTubeMetadataIdentifier" in case AcoustID fails --- YouTubeMDBot/tests/identifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YouTubeMDBot/tests/identifier.py b/YouTubeMDBot/tests/identifier.py index be50d18..747f4a0 100755 --- a/YouTubeMDBot/tests/identifier.py +++ b/YouTubeMDBot/tests/identifier.py @@ -22,7 +22,7 @@ def test_identification(self): audio, data = downloader.download() with open("hello.m4a", "wb") as song: song.write(data) - identifier = YouTubeMetadataIdentifier(audio=data) + identifier = YouTubeMetadataIdentifier(audio=data, downloader=downloader) valid = identifier.identify_audio() assert valid