Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions metadata.tvshows.themoviedb.org.python/addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="metadata.tvshows.themoviedb.org.python"
name="TMDb TV Shows"
version="1.8.1"
version="1.8.2"
provider-name="Team Kodi">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
Expand All @@ -10,13 +10,15 @@
<extension point="xbmc.metadata.scraper.tvshows" library="main.py" cachepersistence="00:15"/>
<extension point="xbmc.addon.metadata">
<reuselanguageinvoker>true</reuselanguageinvoker>
<news>1.8.1
<news>1.8.2
first version for Kodi 22 (Piers)
added season plot
added tagline
added original language
use new VideoInfoTag call to add fanart
refactored duration to be stored in VideoInfoTag rather than stream details
added option to separate posters and keyart
updated process for separating certain artwork types for better trimming
updated language files
</news>
<platform>all</platform>
Expand Down
5 changes: 5 additions & 0 deletions metadata.tvshows.themoviedb.org.python/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.8.2
added option to separate posters and keyart
updated process for separating certain artwork types for better trimming
updated language files

1.8.1
refactored duration storage to use VideoInfoTag instead of stream details
updated language files
Expand Down
12 changes: 5 additions & 7 deletions metadata.tvshows.themoviedb.org.python/libs/data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,18 +214,16 @@ def set_show_artwork(show_info, list_item):
fanart_list = []
for image in image_list:
theurl, previewurl = get_image_urls(image)
if (image.get('iso_639_1') != None and image.get('iso_639_1').lower() != 'xx') and SOURCE_SETTINGS["CATLANDSCAPE"] and theurl:
vtag.addAvailableArtwork(
theurl, arttype="landscape", preview=previewurl)
elif theurl:
theurl, previewurl = get_image_urls(image)
if theurl:
fanart_list.append({'image': theurl})
if fanart_list:
vtag.setAvailableFanart(fanart_list)
else:
if image_type == 'posters':
destination = 'poster'
elif image_type == 'logos':
if image_type == 'logos':
destination = 'clearlogo'
elif image_type == 'posters':
destination = 'poster'
else:
destination = image_type
for image in image_list:
Expand Down
1 change: 1 addition & 0 deletions metadata.tvshows.themoviedb.org.python/libs/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def getSourceSettings():
settings["KEEPTITLE"] = source_settings.get(
'keeporiginaltitle', addon.getSettingBool('keeporiginaltitle'))
settings["CATLANDSCAPE"] = source_settings.get('cat_landscape', True)
settings["CATKEYART"] = source_settings.get('cat_keyart', True)
settings["STUDIOCOUNTRY"] = source_settings.get('studio_country', False)
settings["ENABTRAILER"] = source_settings.get(
'enab_trailer', addon.getSettingBool('enab_trailer'))
Expand Down
27 changes: 25 additions & 2 deletions metadata.tvshows.themoviedb.org.python/libs/tmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,32 @@ def _sort_image_types(imagelist):
:param imagelist:
:return: imagelist
"""
source_settings = settings.getSourceSettings()
new_imagelist = {}
for image_type, images in imagelist.items():
imagelist[image_type] = _image_sort(images, image_type)
return imagelist
if image_type == "backdrops":
backdrops = []
landscape = []
for image in images:
if (image.get('iso_639_1') is not None and image.get('iso_639_1').lower() != 'xx') and source_settings["CATLANDSCAPE"]:
landscape.append(image)
else:
backdrops.append(image)
new_imagelist['landscape'] = _image_sort(landscape, 'landscape')
new_imagelist['backdrops'] = _image_sort(backdrops, 'backdrops')
elif image_type == 'posters':
posters = []
keyart = []
for image in images:
if (image.get('iso_639_1') is None or image.get('iso_639_1').lower() == 'xx') and source_settings["CATKEYART"]:
keyart.append(image)
else:
posters.append(image)
new_imagelist['posters'] = _image_sort(posters, 'posters')
new_imagelist['keyart'] = _image_sort(keyart, 'keyart')
else:
new_imagelist[image_type] = _image_sort(images, image_type)
return new_imagelist


def _image_sort(images, image_type):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
"PO-Revision-Date: 2026-01-25 08:13+0000\n"
"Last-Translator: Heiko Berner <berner.h@gmail.com>\n"
"Language-Team: Afrikaans (South Africa) <https://kodi.weblate.cloud/projects/kodi-add-ons-information-providers/metadata-tvshows-themoviedb-org-python/af_za/>\n"
"Language: af_za\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -55,7 +55,7 @@ msgstr ""

msgctxt "#30007"
msgid "Add keywords as tags"
msgstr ""
msgstr "Voeg sleutelwoorde as etikette by"

msgctxt "#30008"
msgid "Preferred language (Images)"
Expand All @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:18+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:20+0000\n"
"Last-Translator: \"Enol P.\" <enolp@softastur.org>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30006 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:18+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Kai Sommerfeld <ksooo@users.noreply.kodi.weblate.cloud>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr "Andere Sprache für Bilder verwenden"

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: translations@kodi.tv\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: 2026-01-19 01:19+0000\n"
"Last-Translator: Christian Gade <gade@kodi.tv>\n"
Expand Down Expand Up @@ -65,6 +65,10 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""

msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""

# empty strings from 30007 to 30099
msgctxt "#30100"
msgid "Fanart.tv"
Expand Down
Loading