Minori informazioni con log disabilitato

This commit is contained in:
Alhaziel01
2020-11-25 17:54:25 +01:00
parent 9f11eac225
commit 4f498a05f8
157 changed files with 720 additions and 726 deletions

View File

@@ -6,7 +6,7 @@ from platformcode import logger
def test_video_exists(page_url):
logger.info("(page_url='%s')" % page_url)
logger.debug("(page_url='%s')" % page_url)
data = httptools.downloadpage(page_url).data
if "File Not Found" in data:
return False, config.get_localized_string(70449) % "Youwatch"
@@ -20,7 +20,7 @@ def test_video_exists(page_url):
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
logger.info("(page_url='%s')" % page_url)
logger.debug("(page_url='%s')" % page_url)
data = httptools.downloadpage(page_url).data
url_redirect = scrapertools.find_single_match(data, '<iframe src="([^"]+)"')
@@ -31,6 +31,6 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
video_urls = [[scrapertools.get_filename_from_url(url)[-4:] + " [youwatch]", video_url]]
for video_url in video_urls:
logger.info("%s - %s" % (video_url[0], video_url[1]))
logger.debug("%s - %s" % (video_url[0], video_url[1]))
return video_urls