diff --git a/README.md b/README.md index 1edf79a8..98cd9589 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -[![stable version](https://img.shields.io/badge/stable_version-2.7.7-blue.svg?maxAge=60&style=flat) ](https://github.com/croneter/binary_repo/raw/master/stable/repository.plexkodiconnect/repository.plexkodiconnect-1.0.2.zip) -[![beta version](https://img.shields.io/badge/beta_version-2.7.7-red.svg?maxAge=60&style=flat) ](https://github.com/croneter/binary_repo/raw/master/beta/repository.plexkodiconnectbeta/repository.plexkodiconnectbeta-1.0.2.zip) +[![stable version](https://img.shields.io/badge/stable_version-2.7.8-blue.svg?maxAge=60&style=flat) ](https://github.com/croneter/binary_repo/raw/master/stable/repository.plexkodiconnect/repository.plexkodiconnect-1.0.2.zip) +[![beta version](https://img.shields.io/badge/beta_version-2.7.8-red.svg?maxAge=60&style=flat) ](https://github.com/croneter/binary_repo/raw/master/beta/repository.plexkodiconnectbeta/repository.plexkodiconnectbeta-1.0.2.zip) [![Installation](https://img.shields.io/badge/wiki-installation-brightgreen.svg?maxAge=60&style=flat)](https://github.com/croneter/PlexKodiConnect/wiki/Installation) [![FAQ](https://img.shields.io/badge/wiki-FAQ-brightgreen.svg?maxAge=60&style=flat)](https://github.com/croneter/PlexKodiConnect/wiki/faq) diff --git a/addon.xml b/addon.xml index 87087cf1..0a053171 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -77,7 +77,12 @@ Нативна інтеграція Plex в Kodi Підключає Kodi до серверу Plex. Цей плагін передбачає, що ви керуєте всіма своїми відео за допомогою Plex (і ніяк не Kodi). Ви можете втратити дані, які вже зберігаються у відео та музичних БД Kodi (оскільки цей плагін безпосередньо їх змінює). Використовуйте на свій страх і ризик! Використовуйте на свій ризик - version 2.7.7: + version 2.7.8: +- Fix widgets not working in some cases like NVidia Shield +- Fix appending of show title, season and episode number +- Fix node paths for skins + +version 2.7.7: - Fix sync not working due to non-ASCII Plex library names - Fix PKC synching playstate to wrong user on profile switch. Be aware that Kodi profile switches are error-prone - Fix playback sometimes not being reported for direct paths diff --git a/changelog.txt b/changelog.txt index 098e0f99..01aa8610 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,8 @@ +version 2.7.8: +- Fix widgets not working in some cases like NVidia Shield +- Fix appending of show title, season and episode number +- Fix node paths for skins + version 2.7.7: - Fix sync not working due to non-ASCII Plex library names - Fix PKC synching playstate to wrong user on profile switch. Be aware that Kodi profile switches are error-prone 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/library_sync/sections.py b/resources/lib/library_sync/sections.py index 800000e6..22a38f90 100644 --- a/resources/lib/library_sync/sections.py +++ b/resources/lib/library_sync/sections.py @@ -314,6 +314,7 @@ class Section(object): xml = getattr(nodes, 'node_%s' % node_type)(self, node_name) self._write_xml(xml, xml_name) self.order += 1 + path = 'library://video/Plex-%s/%s' % (self.section_id, xml_name) self._window_node(path, node_name, node_type, pms_node) def _write_xml(self, xml, xml_name): diff --git a/resources/lib/widgets.py b/resources/lib/widgets.py index 7ca6ceb8..5ee9facb 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 @@ -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()