wiki_music.library.lyrics module

Warning

Documentation is stil under construction some things might not be up to date.

library.lyrics

Get lyrics from.

Anime Lyrics, AZLyrics, Genius, Lyricsmode, Lyrical Nonsense, Musixmatch, darklyrics

wiki_music.library.lyrics.save_lyrics(tracks: List[str], types: List[str], band: str, album: str, GUI: bool, multi_threaded: bool) → Tuple[List[str], List[Optional[str]]]

Searches and downloads lyrics for each track.

Does some preprocessing before it starts the lyricsfinder module and downloads the lyrics. In preproces, tracks which will have same lyrics are identified so the same lyrics are not downloaded twice. The lyrics are then downloaded asynchronously each in separate thread for speed.

See also

wiki_music.external_libraries.lyricsfinder
module used to download lyrics
wiki_music.utilities.parser_utils.ThreadPool
async download
Parameters:
  • tracks (List[str]) – list of album tracks
  • types (List[str]) – list of album types, to infer which tracks have same lyrics, e.g. <track> and <track (acoustic)> are considered to have same lyrics. Instrumental and Orchestral types are set to no lyrics
  • band (str) – album artist name
  • album (str) – album name
  • GUI (bool) – whether app is running in GUI mode
  • multi_threaded (bool) – whether to download lyrics in parallel of in orderely fasion
Returns:

  • List[str] – list of track lyrics in same order as tracks list was passed in
  • List[Union[str, None]] – list of lyrics source urls