fix server import
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import logger
|
||||
from platformcode import logger, config
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
response = httptools.downloadpage(page_url)
|
||||
if "Contenido rechazado" in response.data:
|
||||
return False, "[Dailymotion] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "dailymotion"
|
||||
if response.code == 404:
|
||||
return False, config.get_localized_string(70449) % "dailymotion"
|
||||
return True, ""
|
||||
|
||||
Reference in New Issue
Block a user