Cb01: esclusione definitiva articoli di servizio, toonitalia fix sezione aggiornamenti, piccole migliorie

This commit is contained in:
mac12m99
2021-06-26 15:20:05 +02:00
parent 5e4a6d9e28
commit 0634538f8d
6 changed files with 17 additions and 15 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
# support.dbg()
url = data.get('result',{}).get('playlist')
video_urls.append([url.split('.')[-1], url + '|Referer:' + page_url])
video_urls.append([url.split('.')[-1], url + '|Referer=' + page_url])
return video_urls
+2 -4
View File
@@ -2,12 +2,10 @@
# --------------------------------------------------------
# Conector playtube By Alfa development Group
# --------------------------------------------------------
import re
import codecs
from core import httptools
from core import scrapertools
from lib import jsunpack
from platformcode import logger
from platformcode import logger, config
def test_video_exists(page_url):
@@ -24,6 +22,6 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
video_urls = []
pack = scrapertools.find_single_match(data.data, 'p,a,c,k,e,d.*?</script>')
unpacked = jsunpack.unpack(pack)
url = scrapertools.find_single_match(unpacked, 'file:"([^"]+)') + "|referer=%s" %(page_url)
url = scrapertools.find_single_match(unpacked, 'file:"([^"]+)') + "|Referer=%s" % page_url
video_urls.append(['m3u8 [PlayTube]', url] )
return video_urls
+1 -1
View File
@@ -11,7 +11,7 @@ def test_video_exists(page_url):
data = httptools.downloadpage(page_url).data
if 'File was deleted' in data:
return False, config.get_localized_string(70449) % 'YouDbox'
return True
return True, ""
def get_video_url(page_url, video_password):