PEP8
This commit is contained in:
parent
96dff29afe
commit
2037ba432b
2 changed files with 13 additions and 10 deletions
|
@ -73,7 +73,7 @@ class Main():
|
|||
int(params.get('limit')))
|
||||
|
||||
elif mode == 'recentepisodes':
|
||||
entrypoint.getRecentEpisodes(itemid,
|
||||
entrypoint.recent_episodes(itemid,
|
||||
params.get('type'),
|
||||
params.get('tagname'),
|
||||
int(params.get('limit')))
|
||||
|
|
|
@ -361,8 +361,9 @@ def in_progress_episodes(tagname, limit):
|
|||
'value': ""},
|
||||
'properties': ["title", "playcount", "season", "episode",
|
||||
"showtitle", "plot", "file", "rating", "resume",
|
||||
"tvshowid", "art", "cast", "streamdetails", "firstaired",
|
||||
"runtime", "writer", "dateadded", "lastplayed"]
|
||||
"tvshowid", "art", "cast", "streamdetails",
|
||||
"firstaired", "runtime", "writer", "dateadded",
|
||||
"lastplayed"]
|
||||
}
|
||||
for episode in js.get_episodes(params):
|
||||
xbmcplugin.addDirectoryItem(handle=HANDLE,
|
||||
|
@ -373,9 +374,11 @@ def in_progress_episodes(tagname, limit):
|
|||
break
|
||||
xbmcplugin.endOfDirectory(handle=HANDLE)
|
||||
|
||||
##### GET RECENT EPISODES FOR TAGNAME #####
|
||||
# def getRecentEpisodes(tagname, limit):
|
||||
def getRecentEpisodes(viewid, mediatype, tagname, limit):
|
||||
|
||||
def recent_episodes(viewid, mediatype, tagname, limit):
|
||||
"""
|
||||
List the recently added episodes for tagname
|
||||
"""
|
||||
count = 0
|
||||
# if the addon is called with recentepisodes parameter,
|
||||
# we return the recentepisodes list of the given tagname
|
||||
|
|
Loading…
Reference in a new issue