mpd: Use get_playlists() in listplaylists
This commit is contained in:
parent
af727bba4e
commit
45ce75586e
@ -75,7 +75,7 @@ def listplaylists(context):
|
|||||||
ignore playlists without names, which isn't very useful anyway.
|
ignore playlists without names, which isn't very useful anyway.
|
||||||
"""
|
"""
|
||||||
result = []
|
result = []
|
||||||
for playlist in context.core.playlists.playlists.get():
|
for playlist in context.core.playlists.get_playlists().get():
|
||||||
if not playlist.name:
|
if not playlist.name:
|
||||||
continue
|
continue
|
||||||
name = context.lookup_playlist_name_from_uri(playlist.uri)
|
name = context.lookup_playlist_name_from_uri(playlist.uri)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user