piccoli fix, rimosso guardaserieicu(chiuso)
This commit is contained in:
@@ -27,7 +27,6 @@
|
|||||||
"guardaserie_stream": "https://guardaserie.store",
|
"guardaserie_stream": "https://guardaserie.store",
|
||||||
"guardaseriecam": "https://guardaserie.cam",
|
"guardaseriecam": "https://guardaserie.cam",
|
||||||
"guardaserieclick": "https://www.guardaserie.guru",
|
"guardaserieclick": "https://www.guardaserie.guru",
|
||||||
"guardaserieicu": "https://guardaserie.icu",
|
|
||||||
"hd4me": "https://hd4me.net",
|
"hd4me": "https://hd4me.net",
|
||||||
"ilgeniodellostreaming": "https://ilgeniodellostreaming.lc",
|
"ilgeniodellostreaming": "https://ilgeniodellostreaming.lc",
|
||||||
"ilgeniodellostreaming_cam": "https://ilgeniodellostreaming.cam",
|
"ilgeniodellostreaming_cam": "https://ilgeniodellostreaming.cam",
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ def peliculas(item):
|
|||||||
# debug = True
|
# debug = True
|
||||||
anime = True
|
anime = True
|
||||||
data = support.match(host + '/wp-admin/admin-ajax.php', post='action=itajax-sort&loop=main+loop&location=&thumbnail=1&rating=1sorter=recent&columns=4&numarticles='+perpage+'&paginated='+str(item.pag)+'¤tquery%5B'+query+'%5D='+searchtext).data.replace('\\','')
|
data = support.match(host + '/wp-admin/admin-ajax.php', post='action=itajax-sort&loop=main+loop&location=&thumbnail=1&rating=1sorter=recent&columns=4&numarticles='+perpage+'&paginated='+str(item.pag)+'¤tquery%5B'+query+'%5D='+searchtext).data.replace('\\','')
|
||||||
patron = '<a href="(?P<url>[^"]+)"><img width="[^"]+" height="[^"]+" src="(?P<thumb>[^"]+)" class="[^"]+" alt="" title="(?P<title>.*?)\s+(?P<type>Movie)?\s*(?P<lang>Sub Ita|Ita)?\s*[sS]treaming'
|
patron = r'<a href="(?P<url>[^"]+)"><img width="[^"]+" height="[^"]+" src="(?P<thumb>[^"]+)" class="[^"]+" alt="" title="(?P<title>[^"]+?)\s+(?P<type>Movie)?\s*(?P<lang>Sub Ita|Ita)?\s*[sS]treaming'
|
||||||
typeContentDict = {'movie':['movie']}
|
typeContentDict = {'movie':['movie']}
|
||||||
typeActionDict = {'findvideos':['movie']}
|
typeActionDict = {'findvideos':['movie']}
|
||||||
|
|
||||||
|
|||||||
@@ -31,9 +31,11 @@ def mainlist(item):
|
|||||||
search = ''
|
search = ''
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
support.info()
|
support.info()
|
||||||
|
# debug = True
|
||||||
|
|
||||||
if item.args != 'newest':
|
if item.args != 'newest':
|
||||||
patronBlock = r'<ul class="posts">(?P<block>.*)<\/ul>'
|
patronBlock = r'<ul class="posts">(?P<block>.*)<\/ul>'
|
||||||
@@ -42,7 +44,7 @@ def peliculas(item):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
patronBlock = r'<ul class="posts">(?P<block>.*)<div class="clear">'
|
patronBlock = r'<ul class="posts">(?P<block>.*)<div class="clear">'
|
||||||
patron = r'<li>\s?<a href="(?P<url>[^"]+)" data-thumbnail="(?P<thumb>[^"]+)">.*?<div class="title">(?P<title>.+?)(?:\s\[(?P<quality>HD)\])?<\/div>[^>]+>(?:[\dx]+)\s?(?:[ ]\((?P<lang>[a-zA-Z\-]+)\))?.+?</div>'
|
patron = r'<li>\s?<a href="(?P<url>[^"]+)" data-thumbnail="(?P<thumb>[^"]+)">.*?<div class="title">(?P<title>.+?)(?:\s\[(?P<quality>HD)\])?<\/div><div class="episode"[^>]+>(?P<episode>[^<(]+)(?:\((?P<lang>[a-zA-Z\-]+)\))?'
|
||||||
pagination = ''
|
pagination = ''
|
||||||
|
|
||||||
if item.args == 'search':
|
if item.args == 'search':
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"id": "guardaserieicu",
|
"id": "guardaserieicu",
|
||||||
"name": "Guarda Serie Icu",
|
"name": "Guarda Serie Icu",
|
||||||
"language": ["ita", "sub-ita"],
|
"language": ["ita", "sub-ita"],
|
||||||
"active": true,
|
"active": false,
|
||||||
"thumbnail": "https://raw.githubusercontent.com/32Dexter/DexterRepo/master/media/guarda_serie.jpg",
|
"thumbnail": "https://raw.githubusercontent.com/32Dexter/DexterRepo/master/media/guarda_serie.jpg",
|
||||||
"banner": "",
|
"banner": "",
|
||||||
"categories": ["tvshow"],
|
"categories": ["tvshow"],
|
||||||
|
|||||||
+12
-8
@@ -206,7 +206,7 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
elif val.startswith('/'):
|
elif val.startswith('/'):
|
||||||
domain = scrapertools.find_single_match(item.url, 'https?://[a-z0-9.-]+')
|
domain = scrapertools.find_single_match(item.url, 'https?://[a-z0-9.-]+')
|
||||||
val = domain + val
|
val = domain + val
|
||||||
scraped[kk] = val
|
scraped[kk] = val.strip() if type(val) == str else val
|
||||||
|
|
||||||
if scraped['season']:
|
if scraped['season']:
|
||||||
stagione = scraped['season']
|
stagione = scraped['season']
|
||||||
@@ -229,13 +229,17 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
episode = ''
|
episode = ''
|
||||||
else:
|
else:
|
||||||
episode = unifyEp(scraped['episode']) if scraped['episode'] else ''
|
episode = unifyEp(scraped['episode']) if scraped['episode'] else ''
|
||||||
if 'x' in episode:
|
try:
|
||||||
ep = episode.split('x')
|
if 'x' in episode:
|
||||||
episode = str(int(ep[0])).zfill(1) + 'x' + str(int(ep[1])).zfill(2)
|
ep = episode.split('x')
|
||||||
item.infoLabels['season'] = int(ep[0])
|
episode = str(int(ep[0])).zfill(1) + 'x' + str(int(ep[1])).zfill(2)
|
||||||
item.infoLabels['episode'] = int(ep[1])
|
item.infoLabels['season'] = int(ep[0])
|
||||||
second_episode = scrapertools.find_single_match(episode, r'x\d+x(\d+)')
|
item.infoLabels['episode'] = int(ep[1])
|
||||||
if second_episode: episode = re.sub(r'(\d+x\d+)x\d+',r'\1-', episode) + second_episode.zfill(2)
|
second_episode = scrapertools.find_single_match(episode, r'x\d+x(\d+)')
|
||||||
|
if second_episode: episode = re.sub(r'(\d+x\d+)x\d+',r'\1-', episode) + second_episode.zfill(2)
|
||||||
|
except:
|
||||||
|
logger.debug('invalid episode: ' + episode)
|
||||||
|
pass
|
||||||
|
|
||||||
#episode = re.sub(r'\s-\s|-|x|–|×', 'x', scraped['episode']) if scraped['episode'] else ''
|
#episode = re.sub(r'\s-\s|-|x|–|×', 'x', scraped['episode']) if scraped['episode'] else ''
|
||||||
title = cleantitle(scraped['title']) if scraped['title'] else ''
|
title = cleantitle(scraped['title']) if scraped['title'] else ''
|
||||||
|
|||||||
Reference in New Issue
Block a user