This commit is contained in:
Croneter 2018-06-15 13:57:33 +02:00
parent c14b9b4ed8
commit 28ccd1a3b3
2 changed files with 6 additions and 4 deletions

View file

@ -79,8 +79,8 @@ class Main():
int(params.get('limit')))
elif mode == 'nextup':
entrypoint.getNextUpEpisodes(params['tagname'],
int(params['limit']))
entrypoint.next_up_episodes(params['tagname'],
int(params['limit']))
elif mode == 'inprogressepisodes':
entrypoint.getInProgressEpisodes(params['tagname'],

View file

@ -268,8 +268,10 @@ def create_listitem(item, append_show_title=False, append_sxxexx=False):
return listitem
##### GET NEXTUP EPISODES FOR TAGNAME #####
def getNextUpEpisodes(tagname, limit):
def next_up_episodes(tagname, limit):
"""
List the next up episodes for tagname.
"""
count = 0
# if the addon is called with nextup parameter,
# we return the nextepisodes list of the given tagname