Skip to content

Commit

Permalink
Solved function name error in unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
Javinator9889 committed Feb 12, 2020
1 parent 1845f15 commit de4e07f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions YouTubeMDBot/tests/converter.py
Expand Up @@ -5,14 +5,13 @@
from io import BytesIO

from YouTubeMDBot.tests.tagger import TaggerTest
from YouTubeMDBot.downloader import YouTubeDownloader
from YouTubeMDBot.audio import FFmpegMP3
from YouTubeMDBot.audio import FFmpegOGG


class MyTestCase(TaggerTest):
def find_metadata(self, downloader: YouTubeDownloader) -> Tuple[BytesIO, bytes]:
io, data = super().find_metadata(downloader)
def find_metadata(self, future, downloader) -> Tuple[BytesIO, bytes, dict]:
io, data, song_info = super().find_metadata(future, downloader)
io.seek(0)
mp3 = FFmpegMP3(data=data, bitrate="96k") # downrate
ogg = FFmpegOGG(data=data, bitrate="256k") # uprate
Expand All @@ -29,7 +28,7 @@ def find_metadata(self, downloader: YouTubeDownloader) -> Tuple[BytesIO, bytes]:
print(mutagen.File(mp3_container).pprint())
print(mutagen.File(ogg_container).pprint())

return io, data
return io, data, song_info


if __name__ == '__main__':
Expand Down

0 comments on commit de4e07f

Please sign in to comment.