This commit is contained in:
Croneter 2018-06-15 14:00:12 +02:00
parent 96dff29afe
commit 2037ba432b
2 changed files with 13 additions and 10 deletions

View file

@ -73,10 +73,10 @@ class Main():
int(params.get('limit'))) int(params.get('limit')))
elif mode == 'recentepisodes': elif mode == 'recentepisodes':
entrypoint.getRecentEpisodes(itemid, entrypoint.recent_episodes(itemid,
params.get('type'), params.get('type'),
params.get('tagname'), params.get('tagname'),
int(params.get('limit'))) int(params.get('limit')))
elif mode == 'nextup': elif mode == 'nextup':
entrypoint.next_up_episodes(params['tagname'], entrypoint.next_up_episodes(params['tagname'],

View file

@ -360,9 +360,10 @@ def in_progress_episodes(tagname, limit):
'field': "inprogress", 'field': "inprogress",
'value': ""}, 'value': ""},
'properties': ["title", "playcount", "season", "episode", 'properties': ["title", "playcount", "season", "episode",
"showtitle", "plot", "file", "rating", "resume", "showtitle", "plot", "file", "rating", "resume",
"tvshowid", "art", "cast", "streamdetails", "firstaired", "tvshowid", "art", "cast", "streamdetails",
"runtime", "writer", "dateadded", "lastplayed"] "firstaired", "runtime", "writer", "dateadded",
"lastplayed"]
} }
for episode in js.get_episodes(params): for episode in js.get_episodes(params):
xbmcplugin.addDirectoryItem(handle=HANDLE, xbmcplugin.addDirectoryItem(handle=HANDLE,
@ -373,9 +374,11 @@ def in_progress_episodes(tagname, limit):
break break
xbmcplugin.endOfDirectory(handle=HANDLE) xbmcplugin.endOfDirectory(handle=HANDLE)
##### GET RECENT EPISODES FOR TAGNAME #####
# def getRecentEpisodes(tagname, limit): def recent_episodes(viewid, mediatype, tagname, limit):
def getRecentEpisodes(viewid, mediatype, tagname, limit): """
List the recently added episodes for tagname
"""
count = 0 count = 0
# if the addon is called with recentepisodes parameter, # if the addon is called with recentepisodes parameter,
# we return the recentepisodes list of the given tagname # we return the recentepisodes list of the given tagname