traduzione server testvideo
This commit is contained in:
+3
-2
@@ -2,17 +2,18 @@
|
||||
# -*- Server Fex -*-
|
||||
# -*- Created for Alfa-addon -*-
|
||||
# -*- By the Alfa Develop Group -*-
|
||||
|
||||
from core import httptools
|
||||
from platformcode import config
|
||||
from platformcode import logger
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
logger.info("(page_url='%s')" % page_url)
|
||||
|
||||
data = httptools.downloadpage(page_url, follow_redirects=False)
|
||||
|
||||
if data.code == 404:
|
||||
return False, "[Fex] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Fex"
|
||||
|
||||
return True, ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user