fix vidtome e migliorie vcrypt
This commit is contained in:
@@ -4,12 +4,16 @@
|
||||
"ignore_urls": [],
|
||||
"patterns": [
|
||||
{
|
||||
"pattern": "(backin.net/fastids/[0-9]+)",
|
||||
"pattern": "https?://(backin.net/fastid[a-z]+/[0-9]+)",
|
||||
"url": "http://\\1"
|
||||
},
|
||||
{
|
||||
"pattern": "backin.net/([a-zA-Z0-9]{10,})",
|
||||
"url": "\\1"
|
||||
"pattern": "https?://backin.net/([a-zA-Z0-9]{10,})",
|
||||
"url": "http://backin.net/stream-\\1-500x400.html"
|
||||
},
|
||||
{
|
||||
"pattern": "https?://backin.net/s/streams.php?s=([a-zA-Z0-9]{10,})",
|
||||
"url": "http://backin.net/stream-\\1-500x400.html"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -11,11 +11,11 @@ except ImportError:
|
||||
def test_video_exists(page_url):
|
||||
logger.debug("(page_url='%s')" % page_url)
|
||||
|
||||
if 'http://' in page_url: # fastids
|
||||
if 'fastid' in page_url: # fastid
|
||||
page_url = httptools.downloadpage(page_url, follow_redirects=False, only_headers=True).headers['location']
|
||||
page_url = scrapertools.find_single_match(page_url, 'backin.net/([a-zA-Z0-9]+)')
|
||||
page_url = "http://backin.net/stream-%s-500x400.html" % scrapertools.find_single_match(page_url, 'backin.net/([a-zA-Z0-9]+)')
|
||||
global data
|
||||
data = httptools.downloadpage("http://backin.net/stream-%s-500x400.html" % page_url).data
|
||||
data = httptools.downloadpage(page_url).data
|
||||
|
||||
if 'File Not Found' in data:
|
||||
return False, config.get_localized_string(70449) % "backin"
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
"ignore_urls": [],
|
||||
"patterns": [
|
||||
{
|
||||
"pattern": "(?:vidtome.stream|vidto.me)/(?!api)(?:embed-)?([A-z0-9]+)",
|
||||
"url": "http://vidtome.stream/\\1.html"
|
||||
"pattern": "https?://vidtome.host/(?!api)(?:embed-)?([A-z0-9]+)",
|
||||
"url": "http://vidtome.host/\\1.html"
|
||||
},
|
||||
{
|
||||
"pattern": "vidtome.stream/api/fastredirect/streaming\\.php\\?file_real=([A-z0-9]+)",
|
||||
"url": "http://vidtome.stream/api/fastredirect/streaming.php?file_real=\\1"
|
||||
"pattern": "https?://vidtome.host/api/fastredirect/streaming\\.php\\?file_real=([A-z0-9]+)",
|
||||
"url": "http://vidtome.host/api/fastredirect/streaming.php?file_real=\\1"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from core import httptools, scrapertools
|
||||
from core import httptools, scrapertools, servertools
|
||||
from platformcode import logger, config
|
||||
from lib import jsunpack
|
||||
|
||||
@@ -21,7 +21,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
code = scrapertools.find_single_match(data, 'name="code" value="([^"]+)')
|
||||
hash = scrapertools.find_single_match(data, 'name="hash" value="([^"]+)')
|
||||
post = "op=download1&code=%s&hash=%s&imhuman=Proceed+to+video" %(code, hash)
|
||||
data = httptools.downloadpage("http://vidtome.co/playvideos/%s" %code, post=post).data
|
||||
data = httptools.downloadpage("http://%s/playvideos/%s" % (servertools.get_server_host("vidtome")[0], code), post=post).data
|
||||
packed = scrapertools.find_multiple_matches(data, r'(eval\s?\(function\(p,a,c,k,e,d\).*?\n)')
|
||||
for p in packed:
|
||||
data = jsunpack.unpack(p)
|
||||
|
||||
Reference in New Issue
Block a user