fix cinamlibero serietv
This commit is contained in:
@@ -97,8 +97,8 @@ def episodios(item):
|
|||||||
item.contentType = 'tvshow'
|
item.contentType = 'tvshow'
|
||||||
else:# item.extra == 'serie':
|
else:# item.extra == 'serie':
|
||||||
support.log("Serie :", item)
|
support.log("Serie :", item)
|
||||||
patron = r'(?P<episode>\d+(?:×|×)?\d+\-\d+|\d+(?:×|×)\d+)[;]?[ ]?(?:(?P<title>[^<]+)(?P<url>.*?)|(\2[ ])(?:<(\3.*?)))(?:</a><br />|</a></p>|$)'
|
patron = r'(?:>| )(?P<episode>\d+(?:x|×|×)\d+)[;]?[ ]?(?:(?P<title>[^<–-]+)(?P<url>.*?)|(\2[ ])(?:<(\3.*?)))(?:</a><br />|</a></p>|$)'
|
||||||
patronBlock = r'<p><strong>(?:.+?[Ss]tagione\s)?(?:(?P<lang>iTA|ITA|Sub-ITA|Sub-iTA))?.*?</strong>(?P<block>.+?)(?:</span|</p)'
|
patronBlock = r'>(?:[^<]+[Ss]tagione\s|[Ss]tagione [Uu]nica)(?:(?P<lang>iTA|ITA|Sub-ITA|Sub-iTA))?.*?</strong>(?P<block>.+?)(?:<strong|<div class="at-below)'
|
||||||
item.contentType = 'tvshow'
|
item.contentType = 'tvshow'
|
||||||
def itemHook(item):
|
def itemHook(item):
|
||||||
if not scrapertools.find_single_match(item.title, r'(\d+x\d+)'):
|
if not scrapertools.find_single_match(item.title, r'(\d+x\d+)'):
|
||||||
|
|||||||
+2
-2
@@ -125,9 +125,9 @@ def regexDbg(item, patron, headers, data=''):
|
|||||||
html = data
|
html = data
|
||||||
headers = {'content-type': 'application/json'}
|
headers = {'content-type': 'application/json'}
|
||||||
data = {
|
data = {
|
||||||
'regex': patron,
|
'regex': patron.decode('utf-8'),
|
||||||
'flags': 'gm',
|
'flags': 'gm',
|
||||||
'testString': html,
|
'testString': html.decode('utf-8'),
|
||||||
'delimiter': '"""',
|
'delimiter': '"""',
|
||||||
'flavor': 'python'
|
'flavor': 'python'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user