Fix Plex channels and watch later not working
This commit is contained in:
parent
b8ebed35f4
commit
e590968d52
1 changed files with 2 additions and 0 deletions
|
@ -683,6 +683,7 @@ def watchlater():
|
||||||
LOG.error('No watch later - restricted user')
|
LOG.error('No watch later - restricted user')
|
||||||
return xbmcplugin.endOfDirectory(int(argv[1]), False)
|
return xbmcplugin.endOfDirectory(int(argv[1]), False)
|
||||||
|
|
||||||
|
app.init(entrypoint=True)
|
||||||
xml = DU().downloadUrl('https://plex.tv/pms/playlists/queue/all',
|
xml = DU().downloadUrl('https://plex.tv/pms/playlists/queue/all',
|
||||||
authenticate=False,
|
authenticate=False,
|
||||||
headerOptions={'X-Plex-Token': utils.window('plex_token')})
|
headerOptions={'X-Plex-Token': utils.window('plex_token')})
|
||||||
|
@ -704,6 +705,7 @@ def channels():
|
||||||
"""
|
"""
|
||||||
Listing for Plex Channels
|
Listing for Plex Channels
|
||||||
"""
|
"""
|
||||||
|
app.init(entrypoint=True)
|
||||||
xml = DU().downloadUrl('{server}/channels/all')
|
xml = DU().downloadUrl('{server}/channels/all')
|
||||||
try:
|
try:
|
||||||
xml[0].attrib
|
xml[0].attrib
|
||||||
|
|
Loading…
Reference in a new issue