mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2026-01-01 23:16:37 +00:00
Add tests for encoders
and some refactoring
This commit is contained in:
@@ -5,13 +5,13 @@ from spotdl.lyrics.exceptions import LyricsNotFoundError
|
||||
|
||||
|
||||
class LyricWikia(LyricBase):
|
||||
def __init__(self, artist, song):
|
||||
def __init__(self, artist, track):
|
||||
self.artist = artist
|
||||
self.song = song
|
||||
self.track = track
|
||||
|
||||
def get_lyrics(self, linesep="\n", timeout=None):
|
||||
try:
|
||||
lyrics = lyricwikia.get_lyrics(self.artist, self.song, linesep, timeout)
|
||||
lyrics = lyricwikia.get_lyrics(self.artist, self.track, linesep, timeout)
|
||||
except lyricwikia.LyricsNotFound as e:
|
||||
raise LyricsNotFoundError(e.args[0])
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user