From 2c2029437a24468d98638e48e38983fa23c48f75 Mon Sep 17 00:00:00 2001 From: Croneter Date: Fri, 15 Jun 2018 14:11:17 +0200 Subject: [PATCH] PEP8 --- default.py | 7 +++---- resources/lib/entrypoint.py | 4 +--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/default.py b/default.py index e5c4de72..3cee65e1 100644 --- a/default.py +++ b/default.py @@ -67,10 +67,9 @@ class Main(): self.play() elif mode == 'ondeck': - entrypoint.getOnDeck(itemid, - params.get('type'), - params.get('tagname'), - int(params.get('limit'))) + entrypoint.on_deck_episodes(itemid, + params.get('tagname'), + int(params.get('limit'))) elif mode == 'recentepisodes': entrypoint.recent_episodes(params.get('type'), diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 0e28cdb5..2491788b 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -531,14 +531,12 @@ def extra_fanart(plex_id, plex_path): xbmcplugin.endOfDirectory(HANDLE) -def getOnDeck(viewid, mediatype, tagname, limit): +def on_deck_episodes(viewid, tagname, limit): """ Retrieves Plex On Deck items, currently only for TV shows Input: viewid: Plex id of the library section, e.g. '1' - mediatype: Kodi mediatype, e.g. 'tvshows', 'movies', - 'homevideos', 'photos' tagname: Name of the Plex library, e.g. "My Movies" limit: Max. number of items to retrieve, e.g. 50 """