traduzione server testvideo
This commit is contained in:
+4
-2
@@ -1,6 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
|
||||
from platformcode import config
|
||||
|
||||
PY3 = False
|
||||
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
|
||||
|
||||
@@ -25,7 +27,7 @@ def test_video_exists(page_url):
|
||||
return True, ""
|
||||
elif "Unfortunately, the file you want is not available." in data or "Unfortunately, the video you want to see is not available" in data or "This stream doesn" in data\
|
||||
or "Page not found" in data:
|
||||
return False, "[Uptobox] El archivo no existe o ha sido borrado"
|
||||
return False, config.get_localized_string(70449) % "Uptobox"
|
||||
wait = scrapertools.find_single_match(data, "You have to wait ([0-9]+) (minute|second)")
|
||||
if len(wait) > 0:
|
||||
tiempo = wait[1].replace("minute", "minuto/s").replace("second", "segundos")
|
||||
|
||||
Reference in New Issue
Block a user