From 9665f34ee6159c05dca273c4726cad752a907c77 Mon Sep 17 00:00:00 2001 From: croneter Date: Wed, 20 Mar 2019 19:19:57 +0100 Subject: [PATCH 1/2] Fix Typo --- resources/lib/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/widgets.py b/resources/lib/widgets.py index 7ca6ceb8..9684fb25 100644 --- a/resources/lib/widgets.py +++ b/resources/lib/widgets.py @@ -51,7 +51,7 @@ def process_method_on_list(method_to_run, items): pool.close() pool.join() else: - all_items = [method_to_run(items) for item in items] + all_items = [method_to_run(item) for item in items] all_items = filter(None, all_items) return all_items From 7cb6c75f3b29acaa26543e0823b0de3eed2946f3 Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 21 Mar 2019 20:06:52 +0100 Subject: [PATCH 2/2] Fix adding of show title, season and episode number --- resources/lib/entrypoint.py | 6 ++++++ resources/lib/widgets.py | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/lib/entrypoint.py b/resources/lib/entrypoint.py index 3370f2dd..7ffdc36b 100644 --- a/resources/lib/entrypoint.py +++ b/resources/lib/entrypoint.py @@ -174,6 +174,12 @@ def show_listing(xml, plex_type=None, section_id=None, synched=True, key=None, # Initialization widgets.PLEX_TYPE = plex_type widgets.SYNCHED = synched + if plex_type == v.PLEX_TYPE_SHOW and key and 'onDeck' in key: + widgets.APPEND_SHOW_TITLE = utils.settings('OnDeckTvAppendShow') == 'true' + widgets.APPEND_SXXEXX = utils.settings('OnDeckTvAppendSeason') == 'true' + if plex_type == v.PLEX_TYPE_SHOW and key and 'recentlyAdded' in key: + widgets.APPEND_SHOW_TITLE = utils.settings('RecentTvAppendShow') == 'true' + widgets.APPEND_SXXEXX = utils.settings('RecentTvAppendSeason') == 'true' if content_type and xml[0].tag == 'Playlist': # Certain views mix playlist types audio and video for entry in reversed(xml): diff --git a/resources/lib/widgets.py b/resources/lib/widgets.py index 9684fb25..5ee9facb 100644 --- a/resources/lib/widgets.py +++ b/resources/lib/widgets.py @@ -210,9 +210,10 @@ def _generate_content(xml_element): # Prefix to the episode's title/label if season_no is not None and episode_no is not None: if APPEND_SXXEXX is True: - item['label'] = "S%.2dE%.2d - %s" % (season_no, episode_no, item['label']) + item['title'] = "S%.2dE%.2d - %s" % (season_no, episode_no, item['title']) if APPEND_SHOW_TITLE is True: - item['label'] = "%s - %s " % (tvshowtitle, item['label']) + item['title'] = "%s - %s " % (tvshowtitle, item['title']) + item['label'] = item['title'] # Determine the path for this item key = api.path_and_plex_id()