mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2025-07-10 19:54:14 +00:00
autopep8 fixes
This commit is contained in:
parent
6c5113abcc
commit
86bbdcf0ea
14 changed files with 215 additions and 166 deletions
|
@ -6,9 +6,10 @@ from loguru import logger
|
|||
|
||||
fzf = FzfPrompt()
|
||||
|
||||
|
||||
@logger.catch
|
||||
def list_artists(pg=None, search=None):
|
||||
artists = get_artists(q=search,pg=pg)
|
||||
artists = get_artists(q=search, pg=pg)
|
||||
artists_next = artists.get('next')
|
||||
artists_prev = artists.get('previous')
|
||||
artists_results = artists.get('results')
|
||||
|
@ -52,7 +53,8 @@ def play_artist(artist_id):
|
|||
storage[track_url_to_uuid(listen_url)] = i
|
||||
player.loadfile(listen_url, 'append-play')
|
||||
if tracks_next:
|
||||
tracks = get_tracks(artist=artist_id, include_channels=True, pg=tracks_next)
|
||||
tracks = get_tracks(
|
||||
artist=artist_id, include_channels=True, pg=tracks_next)
|
||||
else:
|
||||
break
|
||||
artist_name = tracks.get('results')[0]['artist']['name']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue