Clonación de Mispeliculasyseries, descargas2020, torrentrapid y torrentlocura sobre código mejorado de newpct1
Mejoras en la legibilidad de títulos en pantalla de servidores
This commit is contained in:
@@ -334,22 +334,20 @@ def findvideos(item):
|
|||||||
# escraped torrent
|
# escraped torrent
|
||||||
url = scrapertools.find_single_match(data, patron)
|
url = scrapertools.find_single_match(data, patron)
|
||||||
|
|
||||||
title = re.sub(r'\s(\[.*?\])', ' ', title) #scrapea calidad y año
|
|
||||||
|
|
||||||
if item.infoLabels['year']: #añadir el año para series, filtrado por Unify
|
if item.infoLabels['year']: #añadir el año para series, filtrado por Unify
|
||||||
year = '[%s]' % str(item.infoLabels['year'])
|
year = '[%s]' % str(item.infoLabels['year'])
|
||||||
else:
|
else:
|
||||||
year = ""
|
year = ""
|
||||||
|
|
||||||
if item.contentType == "episode":
|
if item.contentType == "episode": #scrapear información duplicada en Series
|
||||||
item.contentType = "tvshow" #forzar contenido a "tvshow" para que Unify no destroce el título
|
|
||||||
|
|
||||||
if "Temp" in title and item.quality != "": #scrapear información duplicada en Series
|
|
||||||
title = re.sub(r'Temp.*?\[', '[', title)
|
title = re.sub(r'Temp.*?\[', '[', title)
|
||||||
title = re.sub(r'\[Cap.*?\]', '', title)
|
title = re.sub(r'\[Cap.*?\]', '', title)
|
||||||
title = '%sx%s - %s, %s, %s' % (str(item.contentSeason), str(item.contentEpisodeNumber), item.contentTitle, year, title)
|
title = '%sx%s - %s %s, %s' % (str(item.contentSeason), str(item.contentEpisodeNumber), item.contentTitle, year, title)
|
||||||
|
|
||||||
itemlist.append(item.clone(title=title, action="", folder=False))
|
itemlist.append(item.clone(title=title, action="", folder=False)) #Título con todos los datos del vídeo
|
||||||
|
|
||||||
|
if item.contentType != "episode":
|
||||||
|
title = re.sub(r'\s(\[.*?\])', ' ', title) #scrapea calidad en pelis
|
||||||
|
|
||||||
if url != "": #Torrent
|
if url != "": #Torrent
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
|
|||||||
@@ -334,22 +334,20 @@ def findvideos(item):
|
|||||||
# escraped torrent
|
# escraped torrent
|
||||||
url = scrapertools.find_single_match(data, patron)
|
url = scrapertools.find_single_match(data, patron)
|
||||||
|
|
||||||
title = re.sub(r'\s(\[.*?\])', ' ', title) #scrapea calidad y año
|
|
||||||
|
|
||||||
if item.infoLabels['year']: #añadir el año para series, filtrado por Unify
|
if item.infoLabels['year']: #añadir el año para series, filtrado por Unify
|
||||||
year = '[%s]' % str(item.infoLabels['year'])
|
year = '[%s]' % str(item.infoLabels['year'])
|
||||||
else:
|
else:
|
||||||
year = ""
|
year = ""
|
||||||
|
|
||||||
if item.contentType == "episode":
|
if item.contentType == "episode": #scrapear información duplicada en Series
|
||||||
item.contentType = "tvshow" #forzar contenido a "tvshow" para que Unify no destroce el título
|
|
||||||
|
|
||||||
if "Temp" in title and item.quality != "": #scrapear información duplicada en Series
|
|
||||||
title = re.sub(r'Temp.*?\[', '[', title)
|
title = re.sub(r'Temp.*?\[', '[', title)
|
||||||
title = re.sub(r'\[Cap.*?\]', '', title)
|
title = re.sub(r'\[Cap.*?\]', '', title)
|
||||||
title = '%sx%s - %s, %s, %s' % (str(item.contentSeason), str(item.contentEpisodeNumber), item.contentTitle, year, title)
|
title = '%sx%s - %s %s, %s' % (str(item.contentSeason), str(item.contentEpisodeNumber), item.contentTitle, year, title)
|
||||||
|
|
||||||
itemlist.append(item.clone(title=title, action="", folder=False))
|
itemlist.append(item.clone(title=title, action="", folder=False)) #Título con todos los datos del vídeo
|
||||||
|
|
||||||
|
if item.contentType != "episode":
|
||||||
|
title = re.sub(r'\s(\[.*?\])', ' ', title) #scrapea calidad en pelis
|
||||||
|
|
||||||
if url != "": #Torrent
|
if url != "": #Torrent
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
|
|||||||
@@ -334,22 +334,20 @@ def findvideos(item):
|
|||||||
# escraped torrent
|
# escraped torrent
|
||||||
url = scrapertools.find_single_match(data, patron)
|
url = scrapertools.find_single_match(data, patron)
|
||||||
|
|
||||||
title = re.sub(r'\s(\[.*?\])', ' ', title) #scrapea calidad y año
|
|
||||||
|
|
||||||
if item.infoLabels['year']: #añadir el año para series, filtrado por Unify
|
if item.infoLabels['year']: #añadir el año para series, filtrado por Unify
|
||||||
year = '[%s]' % str(item.infoLabels['year'])
|
year = '[%s]' % str(item.infoLabels['year'])
|
||||||
else:
|
else:
|
||||||
year = ""
|
year = ""
|
||||||
|
|
||||||
if item.contentType == "episode":
|
if item.contentType == "episode": #scrapear información duplicada en Series
|
||||||
item.contentType = "tvshow" #forzar contenido a "tvshow" para que Unify no destroce el título
|
|
||||||
|
|
||||||
if "Temp" in title and item.quality != "": #scrapear información duplicada en Series
|
|
||||||
title = re.sub(r'Temp.*?\[', '[', title)
|
title = re.sub(r'Temp.*?\[', '[', title)
|
||||||
title = re.sub(r'\[Cap.*?\]', '', title)
|
title = re.sub(r'\[Cap.*?\]', '', title)
|
||||||
title = '%sx%s - %s, %s, %s' % (str(item.contentSeason), str(item.contentEpisodeNumber), item.contentTitle, year, title)
|
title = '%sx%s - %s %s, %s' % (str(item.contentSeason), str(item.contentEpisodeNumber), item.contentTitle, year, title)
|
||||||
|
|
||||||
itemlist.append(item.clone(title=title, action="", folder=False))
|
itemlist.append(item.clone(title=title, action="", folder=False)) #Título con todos los datos del vídeo
|
||||||
|
|
||||||
|
if item.contentType != "episode":
|
||||||
|
title = re.sub(r'\s(\[.*?\])', ' ', title) #scrapea calidad en pelis
|
||||||
|
|
||||||
if url != "": #Torrent
|
if url != "": #Torrent
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
||||||
@@ -334,22 +334,20 @@ def findvideos(item):
|
|||||||
# escraped torrent
|
# escraped torrent
|
||||||
url = scrapertools.find_single_match(data, patron)
|
url = scrapertools.find_single_match(data, patron)
|
||||||
|
|
||||||
title = re.sub(r'\s(\[.*?\])', ' ', title) #scrapea calidad y año
|
|
||||||
|
|
||||||
if item.infoLabels['year']: #añadir el año para series, filtrado por Unify
|
if item.infoLabels['year']: #añadir el año para series, filtrado por Unify
|
||||||
year = '[%s]' % str(item.infoLabels['year'])
|
year = '[%s]' % str(item.infoLabels['year'])
|
||||||
else:
|
else:
|
||||||
year = ""
|
year = ""
|
||||||
|
|
||||||
if item.contentType == "episode":
|
if item.contentType == "episode": #scrapear información duplicada en Series
|
||||||
item.contentType = "tvshow" #forzar contenido a "tvshow" para que Unify no destroce el título
|
|
||||||
|
|
||||||
if "Temp" in title and item.quality != "": #scrapear información duplicada en Series
|
|
||||||
title = re.sub(r'Temp.*?\[', '[', title)
|
title = re.sub(r'Temp.*?\[', '[', title)
|
||||||
title = re.sub(r'\[Cap.*?\]', '', title)
|
title = re.sub(r'\[Cap.*?\]', '', title)
|
||||||
title = '%sx%s - %s, %s, %s' % (str(item.contentSeason), str(item.contentEpisodeNumber), item.contentTitle, year, title)
|
title = '%sx%s - %s %s, %s' % (str(item.contentSeason), str(item.contentEpisodeNumber), item.contentTitle, year, title)
|
||||||
|
|
||||||
itemlist.append(item.clone(title=title, action="", folder=False))
|
itemlist.append(item.clone(title=title, action="", folder=False)) #Título con todos los datos del vídeo
|
||||||
|
|
||||||
|
if item.contentType != "episode":
|
||||||
|
title = re.sub(r'\s(\[.*?\])', ' ', title) #scrapea calidad en pelis
|
||||||
|
|
||||||
if url != "": #Torrent
|
if url != "": #Torrent
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
|
|||||||
Reference in New Issue
Block a user