Updated kodi settings on Lenovo

This commit is contained in:
2026-03-22 22:28:43 +01:00
parent 725dfa7157
commit 32b5a81da6
10925 changed files with 575678 additions and 5511 deletions

View File

@@ -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.7.4"
version="1.7.6"
provider-name="Team Kodi">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
@@ -10,8 +10,9 @@
<extension point="xbmc.metadata.scraper.tvshows" library="main.py" cachepersistence="00:15"/>
<extension point="xbmc.addon.metadata">
<reuselanguageinvoker>true</reuselanguageinvoker>
<news>1.7.4
fix for breaking change to TMDB API for fanart
<news>1.7.6
fix for image sort not using separate image language setting
fix for fanarttv landscape art overwriting TMDb landscape art
</news>
<platform>all</platform>
<license>GPL-3.0-or-later</license>

View File

@@ -1,3 +1,11 @@
1.7.6
fix for image sort not using separate image language setting
fix for fanarttv landscape art overwriting TMDb landscape art
1.7.5
added option to split keyart from posters
fixed sorting and trimming so that landscape and keyart aren't deleted
1.7.4
fix for breaking change to TMDB API for fanart

View File

@@ -213,10 +213,7 @@ 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:
if theurl:
fanart_list.append({'image': theurl})
if fanart_list:
list_item.setAvailableFanart(fanart_list)

View File

@@ -36,7 +36,7 @@ FANARTTV_MAPPING = {'showbackground': 'backdrops',
'clearlogo': 'clearlogo',
'hdclearart': 'clearart',
'clearart': 'clearart',
'tvthumb': 'landscape',
'tvthumb': 'backdrops',
'characterart': 'characterart',
'seasonposter': 'seasonposters',
'seasonbanner': 'seasonbanner',
@@ -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'))

View File

@@ -391,7 +391,7 @@ def load_fanarttv_art(show_info):
if lang == '' or lang == '00':
lang = None
filepath = ''
if lang is None or lang == source_settings["LANG_DETAILS"][0:2] or lang == 'en':
if lang is None or lang == source_settings["LANG_IMAGES"][0:2] or lang == 'en':
filepath = item.get('url')
if filepath:
if tmdb_type.startswith('season'):
@@ -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):
@@ -499,7 +522,7 @@ def _image_sort(images, image_type):
firstimage = True
for image in images:
image_lang = image.get('iso_639_1')
if image_lang == source_settings["LANG_DETAILS"][0:2]:
if image_lang == source_settings["LANG_IMAGES"][0:2]:
lang_pref.append(image)
elif image_lang == 'en':
lang_en.append(image)

View File

@@ -64,7 +64,11 @@ msgctxt "#30009"
msgid "Use different language for images"
msgstr ""
# empty strings from 30009 to 30099
msgctxt "#30010"
msgid "Categorize posters without text as key art"
msgstr ""
# empty strings from 30011 to 30099
msgctxt "#30100"
msgid "Fanart.tv"

View File

@@ -230,6 +230,11 @@
<default>true</default>
<control type="toggle"/>
</setting>
<setting id="cat_keyart" type="boolean" label="30010" help="">
<level>0</level>
<default>true</default>
<control type="toggle"/>
</setting>
<setting id="studio_country" type="boolean" label="30006" help="">
<level>0</level>
<default>false</default>