fix ricerca streamingaltadefinizione (popcorn stream)
This commit is contained in:
@@ -38,7 +38,6 @@ def mainlist(item):
|
|||||||
|
|
||||||
|
|
||||||
def search(item, text):
|
def search(item, text):
|
||||||
findhost()
|
|
||||||
support.log("[streamingaltadefinizione.py] " + item.url + " search " + text)
|
support.log("[streamingaltadefinizione.py] " + item.url + " search " + text)
|
||||||
item.url = item.url + "/?s=" + text
|
item.url = item.url + "/?s=" + text
|
||||||
|
|
||||||
|
|||||||
+6
-2
@@ -239,7 +239,7 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
|
|||||||
title = episode + (s if episode and title else '') + title
|
title = episode + (s if episode and title else '') + title
|
||||||
longtitle = title + (s if title and title2 else '') + title2
|
longtitle = title + (s if title and title2 else '') + title2
|
||||||
longtitle = typo(longtitle, 'bold')
|
longtitle = typo(longtitle, 'bold')
|
||||||
longtitle += (typo(Type,'_ () bold') if Type else '') + (typo(quality, '_ [] color kod') if quality else '')
|
longtitle += typo(quality, '_ [] color kod') if quality else ''
|
||||||
|
|
||||||
lang1, longtitle = scrapeLang(scraped, lang, longtitle)
|
lang1, longtitle = scrapeLang(scraped, lang, longtitle)
|
||||||
|
|
||||||
@@ -530,7 +530,11 @@ def dooplay_search(item, blacklist=""):
|
|||||||
|
|
||||||
|
|
||||||
def dooplay_search_vars(item, blacklist):
|
def dooplay_search_vars(item, blacklist):
|
||||||
if item.contentType == 'movie':
|
if item.contentType == 'list': # ricerca globale
|
||||||
|
type = '(?P<type>movies|tvshows)'
|
||||||
|
typeActionDict = {'findvideos': ['movies'], 'episodios': ['tvshows']}
|
||||||
|
typeContentDict = {'movie': ['movies'], 'episode': ['tvshows']}
|
||||||
|
elif item.contentType == 'movie':
|
||||||
type = 'movies'
|
type = 'movies'
|
||||||
action = 'findvideos'
|
action = 'findvideos'
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -243,11 +243,12 @@ def updateFromZip():
|
|||||||
try:
|
try:
|
||||||
hash = fixZipGetHash(localfilename)
|
hash = fixZipGetHash(localfilename)
|
||||||
import zipfile
|
import zipfile
|
||||||
with zipfile.ZipFile(localfilename, "r") as zip_ref:
|
with zipfile.ZipFile(io.FileIO(localfilename), "r") as zip_ref:
|
||||||
zip_ref.extractall(destpathname)
|
zip_ref.extractall(destpathname)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.info('Non sono riuscito ad estrarre il file zip')
|
logger.info('Non sono riuscito ad estrarre il file zip')
|
||||||
logger.info(e)
|
logger.info(e)
|
||||||
|
dp.close()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
dp.update(95)
|
dp.update(95)
|
||||||
|
|||||||
Reference in New Issue
Block a user