Animeforce Fix

This commit is contained in:
Alhaziel
2019-10-16 19:56:29 +02:00
parent f50e460e33
commit 11101190ad
3 changed files with 16 additions and 6 deletions
+2 -1
View File
@@ -223,7 +223,7 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
if stagione:
episode = season +'x'+ scraped['episode']
elif item.contentType == 'tvshow' and (scraped['episode'] == '' and season == ''):
item.args = 'season_completed'
item.news = 'season_completed'
episode = ''
else:
episode = re.sub(r'\s-\s|-|x|&#8211|×', 'x', scraped['episode']) if scraped['episode'] else ''
@@ -768,6 +768,7 @@ def match(item, patron='', patronBlock='', headers='', url='', post=''):
if patron:
matches = scrapertoolsV2.find_multiple_matches(block, patron)
if not matches: matches = ['']
log('MATCHES= ',matches)
return matches, block