Fix Plex channels and watch later not working

This commit is contained in:
croneter 2019-01-05 08:48:16 +01:00
parent b8ebed35f4
commit e590968d52

View file

@ -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