From 87596332dcf9359d3392af2edad36f2a027797d1 Mon Sep 17 00:00:00 2001 From: sharkykh Date: Fri, 13 Dec 2019 03:23:59 +0200 Subject: [PATCH 1/2] Add `uniqueid` to Kodi 12+ show metadata --- medusa/metadata/kodi_12plus.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/medusa/metadata/kodi_12plus.py b/medusa/metadata/kodi_12plus.py index 6c8c96f4fa..6c254250a7 100644 --- a/medusa/metadata/kodi_12plus.py +++ b/medusa/metadata/kodi_12plus.py @@ -150,6 +150,11 @@ def _show_data(self, series_obj): indexer_id = etree.SubElement(tv_node, 'id') indexer_id.text = text_type(my_show['id']) + uniqueid = etree.SubElement(tv_node, 'uniqueid') + uniqueid.set('type', series_obj.indexer_name) + uniqueid.set('default', 'true') + uniqueid.text = text_type(my_show['id']) + if getattr(my_show, 'genre', None) and isinstance(my_show['genre'], string_types): for genre in self._split_info(my_show['genre']): cur_genre = etree.SubElement(tv_node, 'genre') @@ -271,6 +276,8 @@ def _ep_data(self, ep_obj): episodenum.text = text_type(ep_to_write.episode) uniqueid = etree.SubElement(episode, 'uniqueid') + uniqueid.set('type', ep_obj.indexer_name) + uniqueid.set('default', 'true') uniqueid.text = text_type(ep_to_write.indexerid) if ep_to_write.airdate != datetime.date.fromordinal(1): From 072c5b3cf8f5ab10b9c2cb12713606cb8ed60d2f Mon Sep 17 00:00:00 2001 From: sharkykh Date: Fri, 13 Dec 2019 03:26:38 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9aaa84c41..86415c6918 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ #### New Features +#### Improvements +- Add `uniqueid` to Kodi 12+ show metadata ([#7483](https://github.com/pymedusa/Medusa/pull/7483)) + +#### Fixes + +---- + +## 0.3.9 (2019-12-12) + #### Improvements - Improved qBittorrent client ([#7474](https://github.com/pymedusa/Medusa/pull/7474))