Fixes and implementation
This commit is contained in:
@@ -44,11 +44,25 @@ def config_item(item):
|
|||||||
tvdb.find_and_set_infoLabels(item)
|
tvdb.find_and_set_infoLabels(item)
|
||||||
data = ''
|
data = ''
|
||||||
data = add_season(data)
|
data = add_season(data)
|
||||||
if not item.infoLabels['tvdb_id']:
|
title = item.show
|
||||||
heading = 'TVDB ID'
|
count = 0
|
||||||
item.infoLabels['tvdb_id'] = platformtools.dialog_numeric(0, heading)
|
|
||||||
|
while not item.infoLabels['tvdb_id']:
|
||||||
|
try:
|
||||||
|
item.show = platformtools.dialog_input(default=item.show, heading=config.get_localized_string(30112))
|
||||||
|
tvdb.find_and_set_infoLabels(item)
|
||||||
|
count = count + 1
|
||||||
|
except:
|
||||||
|
heading = config.get_localized_string(70704)
|
||||||
|
item.infoLabels['tvdb_id'] = platformtools.dialog_numeric(0, heading)
|
||||||
data.append(item.infoLabels['tvdb_id'])
|
data.append(item.infoLabels['tvdb_id'])
|
||||||
write_data(item.from_channel, item.show, data)
|
if item.infoLabels['tvdb_id'] != 0:
|
||||||
|
write_data(item.from_channel, title, data)
|
||||||
|
else:
|
||||||
|
message = config.get_localized_string(60444)
|
||||||
|
heading = item.show.strip()
|
||||||
|
platformtools.dialog_notification(heading, message)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def add_season(data=None):
|
def add_season(data=None):
|
||||||
@@ -59,6 +73,7 @@ def add_season(data=None):
|
|||||||
if season != "":
|
if season != "":
|
||||||
heading = config.get_localized_string(70687)
|
heading = config.get_localized_string(70687)
|
||||||
episode = platformtools.dialog_numeric(0, heading)
|
episode = platformtools.dialog_numeric(0, heading)
|
||||||
|
|
||||||
if episode == "0":
|
if episode == "0":
|
||||||
heading = config.get_localized_string(70688)
|
heading = config.get_localized_string(70688)
|
||||||
special = platformtools.dialog_numeric(0, heading)
|
special = platformtools.dialog_numeric(0, heading)
|
||||||
@@ -92,6 +107,8 @@ def write_data(channel, show, data):
|
|||||||
heading = show.strip()
|
heading = show.strip()
|
||||||
platformtools.dialog_notification(heading, message)
|
platformtools.dialog_notification(heading, message)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def renumber(itemlist, item='', typography=''):
|
def renumber(itemlist, item='', typography=''):
|
||||||
log()
|
log()
|
||||||
|
|
||||||
@@ -118,7 +135,7 @@ def renumber(itemlist, item='', typography=''):
|
|||||||
if E == 0:
|
if E == 0:
|
||||||
epList.append([0, SP])
|
epList.append([0, SP])
|
||||||
E = 1
|
E = 1
|
||||||
if episodes['airedEpisodeNumber'] >= E:
|
if episodes['airedEpisodeNumber'] >= E or episodes['airedSeason'] > S:
|
||||||
epList.append([episodes['airedSeason'], episodes['airedEpisodeNumber']])
|
epList.append([episodes['airedSeason'], episodes['airedEpisodeNumber']])
|
||||||
page = page + 1
|
page = page + 1
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -2797,12 +2797,12 @@ msgctxt "#70020"
|
|||||||
msgid "[COLOR yellow]Search similar[/COLOR]"
|
msgid "[COLOR yellow]Search similar[/COLOR]"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#70021"
|
msgctxt "#70022"
|
||||||
msgid "Search in TMDB"
|
msgid " - Movies"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#70022"
|
msgctxt "#70023"
|
||||||
msgid " - Movies"
|
msgid " - TV Shows"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#70023"
|
msgctxt "#70023"
|
||||||
@@ -10446,7 +10446,7 @@ msgid "Enter the number of the starting episode"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#70688"
|
msgctxt "#70688"
|
||||||
msgid "Episode 0 is a special episode, enter the number of this episode"
|
msgid "Episode 0 is a special episode, enter the number of this episode (0 to skip it)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgctxt "#70689"
|
msgctxt "#70689"
|
||||||
@@ -10503,3 +10503,7 @@ msgstr ""
|
|||||||
msgctxt "#70703"
|
msgctxt "#70703"
|
||||||
msgid "Create directories with lowercase letters"
|
msgid "Create directories with lowercase letters"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgctxt "#70704"
|
||||||
|
msgid "TMDB ID (0 to cancel)"
|
||||||
|
msgstr ""
|
||||||
@@ -2794,12 +2794,12 @@ msgid "Search in TMDB"
|
|||||||
msgstr "Cerca in TMDB"
|
msgstr "Cerca in TMDB"
|
||||||
|
|
||||||
msgctxt "#70022"
|
msgctxt "#70022"
|
||||||
msgid " - Movies"
|
msgid " - Movies"
|
||||||
msgstr " - Film"
|
msgstr " - Film"
|
||||||
|
|
||||||
msgctxt "#70023"
|
msgctxt "#70023"
|
||||||
msgid " - TV Shows"
|
msgid " - TV Shows"
|
||||||
msgstr " - Serie TV"
|
msgstr " - Serie TV"
|
||||||
|
|
||||||
msgctxt "#70024"
|
msgctxt "#70024"
|
||||||
msgid "Search in Filmaffinity"
|
msgid "Search in Filmaffinity"
|
||||||
@@ -5431,8 +5431,8 @@ msgid "Enter the number of the starting episode"
|
|||||||
msgstr "Inserisci il numero dell'episodio di partenza"
|
msgstr "Inserisci il numero dell'episodio di partenza"
|
||||||
|
|
||||||
msgctxt "#70688"
|
msgctxt "#70688"
|
||||||
msgid "Episode 0 is a special episode, enter the number of this episode"
|
msgid "Episode 0 is a special episode, enter the number of this episode (0 to skip it)"
|
||||||
msgstr "L'episodio 0 è un episodio speciale, inserisci il numero di questo episodio"
|
msgstr "L'episodio 0 è un episodio speciale, inserisci il numero di questo episodio (0 per saltare)"
|
||||||
|
|
||||||
msgctxt "#70689"
|
msgctxt "#70689"
|
||||||
msgid "Enable Download"
|
msgid "Enable Download"
|
||||||
@@ -5489,3 +5489,7 @@ msgstr "Riavvia Kodi per applicare le modifiche"
|
|||||||
msgctxt "#70703"
|
msgctxt "#70703"
|
||||||
msgid "Create directories with lowercase letters"
|
msgid "Create directories with lowercase letters"
|
||||||
msgstr "Crea cartelle con le lettere minuscole"
|
msgstr "Crea cartelle con le lettere minuscole"
|
||||||
|
|
||||||
|
msgctxt "#70704"
|
||||||
|
msgid "TMDB ID (0 to cancel)"
|
||||||
|
msgstr "TMDB ID (0 per annullare)"
|
||||||
Reference in New Issue
Block a user