Fix Ricerca Alternativa e altri micro fix
This commit is contained in:
@@ -442,6 +442,7 @@ def scrape(func):
|
||||
data = re.sub("='([^']+)'", '="\\1"', page.data)
|
||||
data = data.replace('\n', ' ')
|
||||
data = data.replace('\t', ' ')
|
||||
data = data.replace(' ', ' ')
|
||||
data = re.sub(r'>\s+<', '> <', data)
|
||||
# replace all ' with " and eliminate newline, so we don't need to worry about
|
||||
scrapingTime = time()
|
||||
@@ -928,6 +929,7 @@ def match(item_url_string, **args):
|
||||
data = re.sub("='([^']+)'", '="\\1"', data)
|
||||
data = data.replace('\n', ' ')
|
||||
data = data.replace('\t', ' ')
|
||||
data = data.replace(' ', ' ')
|
||||
data = re.sub(r'>\s+<', '><', data)
|
||||
data = re.sub(r'([a-zA-Z])"([a-zA-Z])', "\1'\2", data)
|
||||
|
||||
@@ -1358,42 +1360,48 @@ def thumb(item_itemlist_string=None, genre=False, live=False):
|
||||
'tvshow':['serie','tv','episodi','episodio','fiction', 'show'],
|
||||
'documentary':['documentari','documentario', 'documentary', 'documentaristico'],
|
||||
'teenager':['ragazzi','teenager', 'teen'],
|
||||
'learning':['learning'],
|
||||
'learning':['learning', 'school', 'scuola'],
|
||||
'all':['tutti', 'all'],
|
||||
'news':['novità', "novita'", 'aggiornamenti', 'nuovi', 'nuove', 'new', 'newest', 'news', 'ultimi'],
|
||||
'news':['novità', "novita'", 'aggiornamenti', 'nuovi', 'nuove', 'new', 'newest', 'news', 'ultimi', 'notizie'],
|
||||
'now_playing':['cinema', 'in sala'],
|
||||
'anime':['anime'],
|
||||
'genres':['genere', 'generi', 'categorie', 'categoria', 'category'],
|
||||
'animation': ['animazione', 'cartoni', 'cartoon', 'animation'],
|
||||
'action':['azione', 'arti marziali', 'action'],
|
||||
'action':['azione', 'marziali', 'action', 'martial'],
|
||||
'adventure': ['avventura', 'adventure'],
|
||||
'biographical':['biografico', 'biographical'],
|
||||
'comedy':['comico', 'commedia', 'demenziale', 'comedy', 'brillante'],
|
||||
'biographical':['biografico', 'biographical', 'biografia'],
|
||||
'comedy':['comico', 'commedia', 'demenziale', 'comedy', 'brillante', 'demential', 'parody'],
|
||||
'adult':['erotico', 'hentai', 'harem', 'ecchi', 'adult'],
|
||||
'drama':['drammatico', 'drama', 'dramma'],
|
||||
'syfy':['fantascienza', 'science fiction', 'syfy', 'sci'],
|
||||
'syfy':['fantascienza', 'science fiction', 'syfy', 'sci-fi'],
|
||||
'fantasy':['fantasy', 'magia', 'magic', 'fantastico'],
|
||||
'crime':['gangster','poliziesco', 'crime', 'crimine'],
|
||||
'crime':['gangster','poliziesco', 'crime', 'crimine', 'police'],
|
||||
'grotesque':['grottesco', 'grotesque'],
|
||||
'war':['guerra', 'war'],
|
||||
'war':['guerra', 'war', 'military'],
|
||||
'children':['bambini', 'kids'],
|
||||
'horror':['horror'],
|
||||
'horror':['horror', 'orrore'],
|
||||
'music':['musical', 'musica', 'music', 'musicale'],
|
||||
'mistery':['mistero', 'giallo', 'mystery'],
|
||||
'noir':['noir'],
|
||||
'popular' : ['popolari','popolare', 'più visti'],
|
||||
'popular':['popolari','popolare', 'più visti', 'raccomandati', 'raccomandazioni' 'recommendations'],
|
||||
'thriller':['thriller'],
|
||||
'top_rated' : ['fortunato', 'votati', 'lucky', 'top'],
|
||||
'on_the_air' : ['corso', 'onda', 'diretta', 'dirette'],
|
||||
'western':['western'],
|
||||
'vos':['sub','sub-ita'],
|
||||
'romance':['romantico','sentimentale', 'romance', 'soap'],
|
||||
'family':['famiglia','famiglie', 'family', 'historical'],
|
||||
'historical':['storico', 'history', 'storia'],
|
||||
'family':['famiglia','famiglie', 'family'],
|
||||
'historical':['storico', 'history', 'storia', 'historical'],
|
||||
'az':['lettera','lista','alfabetico','a-z', 'alphabetical'],
|
||||
'year':['anno', 'anni', 'year'],
|
||||
'update':['replay', 'update'],
|
||||
'videolibrary':['teche'],
|
||||
'info':['info','information','informazioni'],
|
||||
'star':['star', 'personaggi', 'interpreti', 'stars', 'characters', 'performers', 'staff', 'actors', 'attori'],
|
||||
'winter':['inverno', 'winter'],
|
||||
'spring':['primavera', 'spring'],
|
||||
'summer':['estate', 'summer'],
|
||||
'autumn':['autunno', 'autumn'],
|
||||
'autoplay':[config.get_localized_string(60071)]
|
||||
}
|
||||
|
||||
@@ -1409,18 +1417,19 @@ def thumb(item_itemlist_string=None, genre=False, live=False):
|
||||
'_tvshow':['serie','tv', 'fiction']}
|
||||
|
||||
def autoselect_thumb(item, genre):
|
||||
log('SPLIT',re.split(r'\.|\{|\}|\[|\]|\(|\)|/| ',item.title.lower()))
|
||||
if genre == False:
|
||||
for thumb, titles in icon_dict.items():
|
||||
if any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)| ',item.title.lower()) for word in search):
|
||||
if any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)|/| ',item.title.lower()) for word in search):
|
||||
thumb = 'search'
|
||||
for suffix, titles in search_suffix.items():
|
||||
if any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)| ',item.title.lower()) for word in titles ):
|
||||
if any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)|/| ',item.title.lower()) for word in titles ):
|
||||
thumb = thumb + suffix
|
||||
item.thumbnail = get_thumb(thumb + '.png')
|
||||
elif any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)| ',item.title.lower()) for word in titles ):
|
||||
if thumb == 'movie' or thumb == 'tvshow':
|
||||
for suffix, titles in suffix_dict.items():
|
||||
if any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)| ',item.title.lower()) for word in titles ):
|
||||
if any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)|/| ',item.title.lower()) for word in titles ):
|
||||
thumb = thumb + suffix
|
||||
item.thumbnail = get_thumb(thumb + '.png')
|
||||
else: item.thumbnail = get_thumb(thumb + '.png')
|
||||
@@ -1429,7 +1438,7 @@ def thumb(item_itemlist_string=None, genre=False, live=False):
|
||||
|
||||
else:
|
||||
for thumb, titles in icon_dict.items():
|
||||
if any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)| ',item.title.lower()) for word in titles ):
|
||||
if any(word in re.split(r'\.|\{|\}|\[|\]|\(|\)|/| ',item.title.lower()) for word in titles ):
|
||||
item.thumbnail = get_thumb(thumb + '.png')
|
||||
else:
|
||||
thumb = item.thumbnail
|
||||
|
||||
@@ -2921,7 +2921,7 @@ msgid "Search similar"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70021"
|
||||
msgid "Search in TMDB"
|
||||
msgid "Search %s in %s"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70022"
|
||||
@@ -4209,11 +4209,11 @@ msgid "Search in KoD: %s"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70351"
|
||||
msgid " Search alternative title: %s"
|
||||
msgid "Search alternative title: %s"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70352"
|
||||
msgid " Search title in english: %s"
|
||||
msgid "Search title in english: %s"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70353"
|
||||
@@ -4332,10 +4332,6 @@ msgctxt "#70381"
|
||||
msgid "Dropped"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70381"
|
||||
msgid "Myanimelist username and/or password blank"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70382"
|
||||
msgid "Currently watching"
|
||||
msgstr ""
|
||||
@@ -4380,6 +4376,10 @@ msgctxt "#70392"
|
||||
msgid "Rate with a %s"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70393"
|
||||
msgid "Myanimelist username and/or password blank"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "#70394"
|
||||
msgid "Action"
|
||||
msgstr ""
|
||||
|
||||
@@ -2920,8 +2920,8 @@ msgid "Search similar"
|
||||
msgstr "Cerca simili"
|
||||
|
||||
msgctxt "#70021"
|
||||
msgid "Search in TMDB"
|
||||
msgstr "Cerca in TMDB"
|
||||
msgid "Search %s in %s"
|
||||
msgstr "Cerca %s in %s"
|
||||
|
||||
msgctxt "#70022"
|
||||
msgid " - Movies"
|
||||
@@ -4048,7 +4048,7 @@ msgid "TV shows by Genre"
|
||||
msgstr "Serie TV per Genere"
|
||||
|
||||
msgctxt "#70311"
|
||||
msgid "TV Shows most popular"
|
||||
msgid "TV shows most popular"
|
||||
msgstr "Serie TV più popolari"
|
||||
|
||||
msgctxt "#70312"
|
||||
@@ -4208,12 +4208,12 @@ msgid "Search in KoD: %s"
|
||||
msgstr "Cerca in KoD: %s"
|
||||
|
||||
msgctxt "#70351"
|
||||
msgid " Search alternative title: %s"
|
||||
msgstr " Cerca titolo alternativo: %s"
|
||||
msgid "Search alternative title: %s"
|
||||
msgstr "Cerca titolo alternativo: %s"
|
||||
|
||||
msgctxt "#70352"
|
||||
msgid " Search title in english: %s"
|
||||
msgstr " Cerca titolo in inglese: %s"
|
||||
msgid "Search title in english: %s"
|
||||
msgstr "Cerca titolo in inglese: %s"
|
||||
|
||||
msgctxt "#70353"
|
||||
msgid "Vídeos (Episodes, Trailers...)"
|
||||
@@ -4301,11 +4301,11 @@ msgstr "Anime dove appare:"
|
||||
|
||||
msgctxt "#70374"
|
||||
msgid "Give voice to/in:"
|
||||
msgstr "Dai voce a/in:"
|
||||
msgstr "Da voce a/in:"
|
||||
|
||||
msgctxt "#70375"
|
||||
msgid "Staff in animes:"
|
||||
msgstr "Staff in anime:"
|
||||
msgstr "Staff negli anime:"
|
||||
|
||||
msgctxt "#70376"
|
||||
msgid "Info in AniDB %s"
|
||||
@@ -4331,10 +4331,6 @@ msgctxt "#70381"
|
||||
msgid "Dropped"
|
||||
msgstr "Abbandonata"
|
||||
|
||||
msgctxt "#70381"
|
||||
msgid "Myanimelist username and/or password blank"
|
||||
msgstr "Username e/o password di Myanimelist vuoti"
|
||||
|
||||
msgctxt "#70382"
|
||||
msgid "Currently watching"
|
||||
msgstr "In visione attualmente"
|
||||
@@ -4379,6 +4375,10 @@ msgctxt "#70392"
|
||||
msgid "Rate with a %s"
|
||||
msgstr "Dai un punteggio con un %s"
|
||||
|
||||
msgctxt "#70393"
|
||||
msgid "Myanimelist username and/or password blank"
|
||||
msgstr "Username e/o password di Myanimelist vuoti"
|
||||
|
||||
msgctxt "#70394"
|
||||
msgid "Action"
|
||||
msgstr "Azione"
|
||||
|
||||
@@ -39,6 +39,7 @@ def mainlist(item):
|
||||
Item(channel=item.channel, title=config.get_localized_string(70741) % config.get_localized_string(70314), action='new_search', page=1, mode='person', thumbnail=get_thumb("search_star.png")),
|
||||
Item(channel=item.channel, title=config.get_localized_string(59995), action='saved_search', thumbnail=get_thumb('search.png')),
|
||||
Item(channel=item.channel, title=config.get_localized_string(60420), action='sub_menu', thumbnail=get_thumb('search.png')),
|
||||
Item(channel="tvmoviedb", title=config.get_localized_string(70274), action="mainlist", thumbnail=get_thumb("search.png")),
|
||||
Item(channel=item.channel, title=typo(config.get_localized_string(59994), 'color kod bold'), action='setting_channel_new', thumbnail=get_thumb('setting_0.png')),
|
||||
Item(channel='shortcuts', title=typo(config.get_localized_string(70286), 'color kod bold'), action='SettingOnPosition', category=5, setting=1, thumbnail=get_thumb('setting_0.png'))]
|
||||
|
||||
@@ -58,8 +59,7 @@ def sub_menu(item):
|
||||
Item(channel=item.channel, action='years_menu', title=config.get_localized_string(70743), mode='tvshow', thumbnail=get_thumb("tvshow_year.png")),
|
||||
Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70311), search_type='list', list_type='tv/popular', mode='tvshow', thumbnail=get_thumb("popular.png")),
|
||||
Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70312), search_type='list', list_type='tv/on_the_air', mode='tvshow', thumbnail=get_thumb("tvshow_on_the_air.png")),
|
||||
Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70313), search_type='list', list_type='tv/top_rated', mode='tvshow', thumbnail=get_thumb("tvshow_top.png")),
|
||||
Item(channel="tvmoviedb", action="mainlist", title=config.get_localized_string(70274), thumbnail=get_thumb("search.png"))]
|
||||
Item(channel=item.channel, action='discover_list', title=config.get_localized_string(70313), search_type='list', list_type='tv/top_rated', mode='tvshow', thumbnail=get_thumb("tvshow_top.png")),]
|
||||
|
||||
itemlist = set_context(itemlist)
|
||||
return itemlist
|
||||
|
||||
@@ -405,7 +405,8 @@ def cb_servers_favorites(server_names, dict_values):
|
||||
progreso.update(old_div((i * 100), n), config.get_localized_string(60559) % server_parameters['name'])
|
||||
i += 1
|
||||
|
||||
c = 2
|
||||
c = 1
|
||||
logger.log(dict_favorites)
|
||||
favorites_servers_list = []
|
||||
while c in dict_favorites:
|
||||
favorites_servers_list.append(dict_favorites[c])
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user