Altro Fix Per Titoli
This commit is contained in:
+4
-3
@@ -324,10 +324,11 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
break
|
break
|
||||||
else: AC = action
|
else: AC = action
|
||||||
if (scraped["title"] not in blacklist) and (search.lower() in longtitle.lower()):
|
if (scraped["title"] not in blacklist) and (search.lower() in longtitle.lower()):
|
||||||
|
contentType = 'episode' if function == 'episodios' else CT if CT else item.contentType
|
||||||
it = Item(
|
it = Item(
|
||||||
channel=item.channel,
|
channel=item.channel,
|
||||||
action=AC if AC else action,
|
action=AC if AC else action,
|
||||||
contentType='episode' if function == 'episodios' else CT if CT else item.contentType,
|
contentType=contentType,
|
||||||
title=longtitle,
|
title=longtitle,
|
||||||
fulltitle=item.fulltitle if function == 'episodios' else title,
|
fulltitle=item.fulltitle if function == 'episodios' else title,
|
||||||
show=item.show if function == 'episodios' else title,
|
show=item.show if function == 'episodios' else title,
|
||||||
@@ -336,8 +337,8 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
infoLabels=infolabels,
|
infoLabels=infolabels,
|
||||||
thumbnail=item.thumbnail if function == 'episodios' or not scraped["thumb"] else scraped["thumb"],
|
thumbnail=item.thumbnail if function == 'episodios' or not scraped["thumb"] else scraped["thumb"],
|
||||||
args=item.args,
|
args=item.args,
|
||||||
contentSerieName= item.contentSerieName if item.contentSerieName and function == 'peliculas' else title if 'movie' not in [item.contentType, CT] and function != 'episodios' else item.fulltitle,
|
contentSerieName= title if 'movie' not in [contentType] and function != 'episodios' else item.contentSerieName,
|
||||||
contentTitle=item.contentTitle if item.contentTitle and function == 'peliculas' else title if 'movie' in [item.contentType, CT] and function == 'peliculas' else '',
|
contentTitle= title if 'movie' in [contentType] and function == 'peliculas' else item.contentTitle,
|
||||||
contentLanguage = lang1,
|
contentLanguage = lang1,
|
||||||
contentEpisodeNumber=episode if episode else '',
|
contentEpisodeNumber=episode if episode else '',
|
||||||
news= item.news if item.news else '',
|
news= item.news if item.news else '',
|
||||||
|
|||||||
Reference in New Issue
Block a user