mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-12 03:06:13 +00:00
Refactor to meet code style
This commit is contained in:
parent
18c4124afa
commit
937aff24f3
1 changed files with 3 additions and 3 deletions
|
@ -920,15 +920,15 @@ def get_next_episodes(item_id, limit):
|
|||
if not library:
|
||||
return
|
||||
|
||||
maxDaysInNextEpisodes = settings('maxDaysInNextEpisodes')
|
||||
if maxDaysInNextEpisodes != 0:
|
||||
max_days = settings('maxDaysInNextEpisodes')
|
||||
if max_days != 0:
|
||||
params = {
|
||||
"sort": {"order": "descending", "method": "lastplayed"},
|
||||
"filter": {
|
||||
"and": [
|
||||
{"operator": "true", "field": "inprogress", "value": ""},
|
||||
{"operator": "is", "field": "tag", "value": "%s" % library},
|
||||
{"operator": "inthelast", "field": "lastplayed", "value": "%s days" % maxDaysInNextEpisodes},
|
||||
{"operator": "inthelast", "field": "lastplayed", "value": "%s days" % max_days},
|
||||
]
|
||||
},
|
||||
"properties": ["title", "studio", "mpaa", "file", "art"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue