TV shows On Deck: append season and episode number
This commit is contained in:
parent
45a26efe7c
commit
8308665183
3 changed files with 9 additions and 7 deletions
|
@ -390,8 +390,8 @@
|
||||||
|
|
||||||
<string id="39045">Appearance Tweaks</string>
|
<string id="39045">Appearance Tweaks</string>
|
||||||
<string id="39046">TV Shows</string>
|
<string id="39046">TV Shows</string>
|
||||||
<string id="39047">On Deck view: Append show title to episode</string>
|
<string id="39047">On Deck: Append show title to episode</string>
|
||||||
<string id="39048">On Deck view: Append season number to episode</string>
|
<string id="39048">On Deck: Append season- and episode-number (e.g. S3E2)</string>
|
||||||
|
|
||||||
|
|
||||||
<!-- Plex Entrypoint.py -->
|
<!-- Plex Entrypoint.py -->
|
||||||
|
|
|
@ -327,7 +327,7 @@
|
||||||
<string id="39045">Erscheinung</string>
|
<string id="39045">Erscheinung</string>
|
||||||
<string id="39046">TV Serien</string>
|
<string id="39046">TV Serien</string>
|
||||||
<string id="39047">"Aktuell": Serien- an Episoden-Titel anfügen</string>
|
<string id="39047">"Aktuell": Serien- an Episoden-Titel anfügen</string>
|
||||||
<string id="39048">"Aktuell": Staffel an Episoden-Titel anfügen</string>
|
<string id="39048">"Aktuell": Staffel und Episode anfügen (z.B. S3E2)</string>
|
||||||
|
|
||||||
<!-- Plex Entrypoint.py -->
|
<!-- Plex Entrypoint.py -->
|
||||||
<string id="39200">Plex Home Benutzer wechseln</string>
|
<string id="39200">Plex Home Benutzer wechseln</string>
|
||||||
|
|
|
@ -1447,11 +1447,13 @@ def getOnDeck(viewid, mediatype, tagname, limit):
|
||||||
# There will always be only 1 episode ('limit=1')
|
# There will always be only 1 episode ('limit=1')
|
||||||
li = createListItem(episode)
|
li = createListItem(episode)
|
||||||
# Fix some skin shortcomings
|
# Fix some skin shortcomings
|
||||||
title = episode['title']
|
title = episode.get('title', '')
|
||||||
if utils.settings('OnDeckTvAppendSeason') == 'true':
|
if utils.settings('OnDeckTvAppendSeason') == 'true':
|
||||||
season = episode.get('season')
|
seasonid = episode.get('season')
|
||||||
if season:
|
episodeid = episode.get('episode')
|
||||||
title = str(season) + ' - ' + title
|
if seasonid and episodeid:
|
||||||
|
title = ('S' + str(seasonid) + 'E' + str(episodeid)
|
||||||
|
+ ' - ' + title)
|
||||||
if utils.settings('OnDeckTvAppendShow') == 'true':
|
if utils.settings('OnDeckTvAppendShow') == 'true':
|
||||||
show = episode.get('showtitle')
|
show = episode.get('showtitle')
|
||||||
if show:
|
if show:
|
||||||
|
|
Loading…
Reference in a new issue