Fix SuperVideo
This commit is contained in:
@@ -12,6 +12,9 @@ def test_video_exists(page_url):
|
||||
logger.debug("(page_url='%s')" % page_url)
|
||||
global data
|
||||
data = httptools.downloadpage(page_url, cookies=False).data
|
||||
if 'Video embed restricted for this domain'in data:
|
||||
headers = {'Referer':''}
|
||||
data = httptools.downloadpage(page_url, headers=headers, cookies=False).data
|
||||
if 'File is no longer available as it expired or has been deleted' in data:
|
||||
return False, config.get_localized_string(70449) % "SuperVideo"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user