Skip to content

Commit d08ce39

Browse files
pkscoutkodiai[bot]
andcommitted
[metadata.tvshows.themoviedatabase.org.python] v1.8.2
- added option to separate posters and keyart - updated process for separating certain artwork types for better trimming - updated language files Update metadata.tvshows.themoviedb.org.python/libs/data_utils.py Update metadata.tvshows.themoviedb.org.python/libs/tmdb.py Update metadata.tvshows.themoviedb.org.python/libs/tmdb.py Co-Authored-By: kodiai[bot] <260572656+kodiai[bot]@users.noreply.github.com>
1 parent d71041f commit d08ce39

File tree

84 files changed

+651
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+651
-140
lines changed

metadata.tvshows.themoviedb.org.python/addon.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
22
<addon id="metadata.tvshows.themoviedb.org.python"
33
name="TMDb TV Shows"
4-
version="1.8.1"
4+
version="1.8.2"
55
provider-name="Team Kodi">
66
<requires>
77
<import addon="xbmc.python" version="3.0.0"/>
@@ -10,13 +10,15 @@
1010
<extension point="xbmc.metadata.scraper.tvshows" library="main.py" cachepersistence="00:15"/>
1111
<extension point="xbmc.addon.metadata">
1212
<reuselanguageinvoker>true</reuselanguageinvoker>
13-
<news>1.8.1
13+
<news>1.8.2
1414
first version for Kodi 22 (Piers)
1515
added season plot
1616
added tagline
1717
added original language
1818
use new VideoInfoTag call to add fanart
1919
refactored duration to be stored in VideoInfoTag rather than stream details
20+
added option to separate posters and keyart
21+
updated process for separating certain artwork types for better trimming
2022
updated language files
2123
</news>
2224
<platform>all</platform>

metadata.tvshows.themoviedb.org.python/changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.8.2
2+
added option to separate posters and keyart
3+
updated process for separating certain artwork types for better trimming
4+
updated language files
5+
16
1.8.1
27
refactored duration storage to use VideoInfoTag instead of stream details
38
updated language files

metadata.tvshows.themoviedb.org.python/libs/data_utils.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,18 +214,16 @@ def set_show_artwork(show_info, list_item):
214214
fanart_list = []
215215
for image in image_list:
216216
theurl, previewurl = get_image_urls(image)
217-
if (image.get('iso_639_1') != None and image.get('iso_639_1').lower() != 'xx') and SOURCE_SETTINGS["CATLANDSCAPE"] and theurl:
218-
vtag.addAvailableArtwork(
219-
theurl, arttype="landscape", preview=previewurl)
220-
elif theurl:
217+
theurl, previewurl = get_image_urls(image)
218+
if theurl:
221219
fanart_list.append({'image': theurl})
222220
if fanart_list:
223221
vtag.setAvailableFanart(fanart_list)
224222
else:
225-
if image_type == 'posters':
226-
destination = 'poster'
227-
elif image_type == 'logos':
223+
if image_type == 'logos':
228224
destination = 'clearlogo'
225+
elif image_type == 'posters':
226+
destination = 'poster'
229227
else:
230228
destination = image_type
231229
for image in image_list:

metadata.tvshows.themoviedb.org.python/libs/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def getSourceSettings():
8484
settings["KEEPTITLE"] = source_settings.get(
8585
'keeporiginaltitle', addon.getSettingBool('keeporiginaltitle'))
8686
settings["CATLANDSCAPE"] = source_settings.get('cat_landscape', True)
87+
settings["CATKEYART"] = source_settings.get('cat_keyart', True)
8788
settings["STUDIOCOUNTRY"] = source_settings.get('studio_country', False)
8889
settings["ENABTRAILER"] = source_settings.get(
8990
'enab_trailer', addon.getSettingBool('enab_trailer'))

metadata.tvshows.themoviedb.org.python/libs/tmdb.py

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,32 @@ def _sort_image_types(imagelist):
478478
:param imagelist:
479479
:return: imagelist
480480
"""
481+
source_settings = settings.getSourceSettings()
482+
new_imagelist = {}
481483
for image_type, images in imagelist.items():
482-
imagelist[image_type] = _image_sort(images, image_type)
483-
return imagelist
484+
if image_type == "backdrops":
485+
backdrops = []
486+
landscape = []
487+
for image in images:
488+
if (image.get('iso_639_1') is not None and image.get('iso_639_1').lower() != 'xx') and source_settings["CATLANDSCAPE"]:
489+
landscape.append(image)
490+
else:
491+
backdrops.append(image)
492+
new_imagelist['landscape'] = _image_sort(landscape, 'landscape')
493+
new_imagelist['backdrops'] = _image_sort(backdrops, 'backdrops')
494+
elif image_type == 'posters':
495+
posters = []
496+
keyart = []
497+
for image in images:
498+
if (image.get('iso_639_1') is None or image.get('iso_639_1').lower() == 'xx') and source_settings["CATKEYART"]:
499+
keyart.append(image)
500+
else:
501+
posters.append(image)
502+
new_imagelist['posters'] = _image_sort(posters, 'posters')
503+
new_imagelist['keyart'] = _image_sort(keyart, 'keyart')
504+
else:
505+
new_imagelist[image_type] = _image_sort(images, image_type)
506+
return new_imagelist
484507

485508

486509
def _image_sort(images, image_type):

metadata.tvshows.themoviedb.org.python/resources/language/resource.language.af_za/strings.po

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: XBMC Addons\n"
8-
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
8+
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
99
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
10-
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
11-
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
10+
"PO-Revision-Date: 2026-01-25 08:13+0000\n"
11+
"Last-Translator: Heiko Berner <berner.h@gmail.com>\n"
1212
"Language-Team: Afrikaans (South Africa) <https://kodi.weblate.cloud/projects/kodi-add-ons-information-providers/metadata-tvshows-themoviedb-org-python/af_za/>\n"
1313
"Language: af_za\n"
1414
"MIME-Version: 1.0\n"
@@ -55,7 +55,7 @@ msgstr ""
5555

5656
msgctxt "#30007"
5757
msgid "Add keywords as tags"
58-
msgstr ""
58+
msgstr "Voeg sleutelwoorde as etikette by"
5959

6060
msgctxt "#30008"
6161
msgid "Preferred language (Images)"
@@ -65,6 +65,10 @@ msgctxt "#30009"
6565
msgid "Use different language for images"
6666
msgstr ""
6767

68+
msgctxt "#30010"
69+
msgid "Categorize posters without text as key art"
70+
msgstr ""
71+
6872
# empty strings from 30007 to 30099
6973
msgctxt "#30100"
7074
msgid "Fanart.tv"

metadata.tvshows.themoviedb.org.python/resources/language/resource.language.am_et/strings.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: XBMC Addons\n"
8-
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
8+
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
99
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"PO-Revision-Date: 2026-01-19 01:18+0000\n"
1111
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
@@ -65,6 +65,10 @@ msgctxt "#30009"
6565
msgid "Use different language for images"
6666
msgstr ""
6767

68+
msgctxt "#30010"
69+
msgid "Categorize posters without text as key art"
70+
msgstr ""
71+
6872
# empty strings from 30007 to 30099
6973
msgctxt "#30100"
7074
msgid "Fanart.tv"

metadata.tvshows.themoviedb.org.python/resources/language/resource.language.ar_sa/strings.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: XBMC Addons\n"
8-
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
8+
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
99
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
1111
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
@@ -65,6 +65,10 @@ msgctxt "#30009"
6565
msgid "Use different language for images"
6666
msgstr ""
6767

68+
msgctxt "#30010"
69+
msgid "Categorize posters without text as key art"
70+
msgstr ""
71+
6872
# empty strings from 30007 to 30099
6973
msgctxt "#30100"
7074
msgid "Fanart.tv"

metadata.tvshows.themoviedb.org.python/resources/language/resource.language.ast_es/strings.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: XBMC Addons\n"
8-
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
8+
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
99
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"PO-Revision-Date: 2026-01-19 01:20+0000\n"
1111
"Last-Translator: \"Enol P.\" <enolp@softastur.org>\n"
@@ -65,6 +65,10 @@ msgctxt "#30009"
6565
msgid "Use different language for images"
6666
msgstr ""
6767

68+
msgctxt "#30010"
69+
msgid "Categorize posters without text as key art"
70+
msgstr ""
71+
6872
# empty strings from 30006 to 30099
6973
msgctxt "#30100"
7074
msgid "Fanart.tv"

metadata.tvshows.themoviedb.org.python/resources/language/resource.language.az_az/strings.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
msgid ""
66
msgstr ""
77
"Project-Id-Version: XBMC Addons\n"
8-
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
8+
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
99
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
1010
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
1111
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
@@ -65,6 +65,10 @@ msgctxt "#30009"
6565
msgid "Use different language for images"
6666
msgstr ""
6767

68+
msgctxt "#30010"
69+
msgid "Categorize posters without text as key art"
70+
msgstr ""
71+
6872
# empty strings from 30007 to 30099
6973
msgctxt "#30100"
7074
msgid "Fanart.tv"

0 commit comments

Comments
 (0)