little fix for duration in scrape function

This commit is contained in:
Alhaziel
2019-04-11 18:33:16 +02:00
parent 392f0f73fc
commit 69f451c332

View File

@@ -166,7 +166,7 @@ def scrape(item, patron = '', listGroups = [], headers="", blacklist="", data=""
if scrapedplot:
infolabels['plot'] = plot
if scrapedduration:
infolabels['duration'] = scrapedduration
infolabels['duration'] = int(scrapedduration) * 60
if scrapedgenre:
genres = scrapertoolsV2.find_multiple_matches(scrapedgenre, '[A-Za-z]+')
infolabels['genre'] = ", ".join(genres)
@@ -361,9 +361,10 @@ def match(item, patron='', patron_block='', headers=''):
log('BLOCK= ',block)
else:
block = data
matches = scrapertoolsV2.find_multiple_matches(block, patron)
log('MATCHES= ',matches)
if patron:
matches = scrapertoolsV2.find_multiple_matches(block, patron)
log('MATCHES= ',matches)
return matches, data