Hopefully fix download of Plex playlists
This commit is contained in:
parent
b448d1c06f
commit
6f6fb16352
1 changed files with 4 additions and 2 deletions
|
@ -683,8 +683,10 @@ def get_PMS_playlist(playlist, playlist_id=None):
|
||||||
Returns None if something went wrong
|
Returns None if something went wrong
|
||||||
"""
|
"""
|
||||||
playlist_id = playlist_id if playlist_id else playlist.id
|
playlist_id = playlist_id if playlist_id else playlist.id
|
||||||
xml = DU().downloadUrl("{server}/%ss/%s" % (playlist.kind.lower(),
|
if playlist.kind == 'playList':
|
||||||
playlist_id))
|
xml = DU().downloadUrl("{server}/playlists/%s/items" % playlist_id)
|
||||||
|
else:
|
||||||
|
xml = DU().downloadUrl("{server}/playqueues/%s" % playlist_id)
|
||||||
try:
|
try:
|
||||||
xml.attrib
|
xml.attrib
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
|
|
Loading…
Reference in a new issue