From 28ccd1a3b34c847bd0c7a864ae9a2c95433807f2 Mon Sep 17 00:00:00 2001 From: Croneter Date: Fri, 15 Jun 2018 13:57:33 +0200 Subject: [PATCH] PEP8 --- default.py | 4 ++-- resources/lib/entrypoint.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/default.py b/default.py index 8749b0c6..dca0630d 100644 --- a/default.py +++ b/default.py @@ -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'], diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 7e7ecde0..567b34c2 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -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