Decouple fetching metadata

This commit is contained in:
Ritiek Malhotra
2020-03-22 21:44:04 +05:30
parent dae76a0abb
commit 7413c541d3
12 changed files with 373 additions and 485 deletions

View File

@@ -10,6 +10,9 @@ class LyricWikia(LyricBase):
self.track = track
def get_lyrics(self, linesep="\n", timeout=None):
"""
Returns the lyric string for the given artist and track.
"""
try:
lyrics = lyricwikia.get_lyrics(self.artist, self.track, linesep, timeout)
except lyricwikia.LyricsNotFound as e: