From 96dff29afe1116b61172292af73dd80829a430b5 Mon Sep 17 00:00:00 2001 From: Croneter Date: Fri, 15 Jun 2018 13:58:39 +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 dca0630d..1b6cbd66 100644 --- a/default.py +++ b/default.py @@ -83,8 +83,8 @@ class Main(): int(params['limit'])) elif mode == 'inprogressepisodes': - entrypoint.getInProgressEpisodes(params['tagname'], - int(params['limit'])) + entrypoint.in_progress_episodes(params['tagname'], + int(params['limit'])) elif mode == 'browseplex': entrypoint.browse_plex(key=params.get('key'), diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 567b34c2..0b7d7744 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -333,8 +333,10 @@ def next_up_episodes(tagname, limit): xbmcplugin.endOfDirectory(handle=HANDLE) -##### GET INPROGRESS EPISODES FOR TAGNAME ##### -def getInProgressEpisodes(tagname, limit): +def in_progress_episodes(tagname, limit): + """ + List the episodes that are in progress for tagname + """ count = 0 # if the addon is called with inprogressepisodes parameter, # we return the inprogressepisodes list of the given tagname