Adicionando skills para tocar mais musicas do artista/album que esta sendo tocado no momento
Some checks failed
Documentation Generator / Build Sphinx documentation (push) Has been cancelled
Some checks failed
Documentation Generator / Build Sphinx documentation (push) Has been cancelled
This commit is contained in:
@@ -371,8 +371,9 @@ class NaviSonicPlayMusicByCurrentArtist(AbstractRequestHandler):
|
|||||||
artist_lookup = connection.search_artist(t["artist"])
|
artist_lookup = connection.search_artist(t["artist"])
|
||||||
artist_album_lookup = connection.albums_by_artist(artist_lookup[0].get('id'))
|
artist_album_lookup = connection.albums_by_artist(artist_lookup[0].get('id'))
|
||||||
song_id_list = connection.build_song_list_from_albums(artist_album_lookup, min_song_count)
|
song_id_list = connection.build_song_list_from_albums(artist_album_lookup, min_song_count)
|
||||||
play_queue.clear()
|
play_queue.clea
|
||||||
|
|
||||||
|
global backgroundProcess
|
||||||
if backgroundProcess is not None:
|
if backgroundProcess is not None:
|
||||||
backgroundProcess.terminate()
|
backgroundProcess.terminate()
|
||||||
backgroundProcess.join()
|
backgroundProcess.join()
|
||||||
@@ -406,6 +407,7 @@ class NaviSonicPlayMusicByCurrentAlbum(AbstractRequestHandler):
|
|||||||
song_id_list = connection.build_song_list_from_albums(result, -1)
|
song_id_list = connection.build_song_list_from_albums(result, -1)
|
||||||
play_queue.clear()
|
play_queue.clear()
|
||||||
|
|
||||||
|
global backgroundProcess
|
||||||
if backgroundProcess is not None:
|
if backgroundProcess is not None:
|
||||||
backgroundProcess.terminate()
|
backgroundProcess.terminate()
|
||||||
backgroundProcess.join()
|
backgroundProcess.join()
|
||||||
|
|||||||
Reference in New Issue
Block a user