use Printer class for output

- added print-options for API_ERRORS
- modified printing inside of invoke_url
- "No Genre found." is printed using SKIPS
This commit is contained in:
Leon Bohmann
2021-12-01 13:48:53 +01:00
parent 055f7ad97d
commit c9e8c0c45d
4 changed files with 9 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ def get_song_info(song_id) -> Tuple[List[str], List[str], str, str, Any, Any, An
genres.append(artistInfo[GENRES][0])
if len(genres) == 0:
Printer.print(PrintChannel.SKIPS, "No Genre found.")
Printer.print(PrintChannel.SKIPS, '### No Genre found.')
genres.append('')
album_name = info[TRACKS][0][ALBUM][NAME]