[openload.py] check if re.findall return a list empty or None

This commit is contained in:
cttynul
2019-04-04 19:01:12 +02:00
committed by mac12m99
parent 200c9ae769
commit df38f7e635

View File

@@ -34,7 +34,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
try:
code = scrapertools.find_single_match(data, '<p style="" id="[^"]+">(.*?)</p>' )
if code == "":
if not code or code == "" or code is None:
code = scrapertools.find_single_match(data, '<p id="[^"]+" style="">(.*?)</p>' )
_0x59ce16 = eval(scrapertools.find_single_match(data, '_0x59ce16=([^;]+)').replace('parseInt', 'int'))
_1x4bfb36 = eval(scrapertools.find_single_match(data, '_1x4bfb36=([^;]+)').replace('parseInt', 'int'))