Remove boilerplate
This commit is contained in:
parent
4bc31cf4bc
commit
fd7e30f84c
1 changed files with 1 additions and 15 deletions
|
@ -888,22 +888,8 @@ def watchlater():
|
||||||
|
|
||||||
log.info('Displaying watch later plex.tv items')
|
log.info('Displaying watch later plex.tv items')
|
||||||
xbmcplugin.setContent(HANDLE, 'movies')
|
xbmcplugin.setContent(HANDLE, 'movies')
|
||||||
url = "plugin://plugin.video.plexkodiconnect/"
|
|
||||||
params = {
|
|
||||||
'mode': "Plex_Node",
|
|
||||||
}
|
|
||||||
for item in xml:
|
for item in xml:
|
||||||
api = API(item)
|
__build_item(item)
|
||||||
listitem = api.CreateListItemFromPlexItem()
|
|
||||||
api.AddStreamInfo(listitem)
|
|
||||||
api.set_listitem_artwork(listitem)
|
|
||||||
params['id'] = item.attrib.get('key')
|
|
||||||
params['viewOffset'] = item.attrib.get('viewOffset', '0')
|
|
||||||
params['plex_type'] = item.attrib.get('type')
|
|
||||||
xbmcplugin.addDirectoryItem(
|
|
||||||
handle=HANDLE,
|
|
||||||
url="%s?%s" % (url, urlencode(params)),
|
|
||||||
listitem=listitem)
|
|
||||||
|
|
||||||
xbmcplugin.endOfDirectory(
|
xbmcplugin.endOfDirectory(
|
||||||
handle=HANDLE,
|
handle=HANDLE,
|
||||||
|
|
Loading…
Reference in a new issue