Revert "Created branch develop"

This commit is contained in:
Alfa
2017-08-13 11:21:50 +02:00
committed by GitHub
parent 8000a6fd25
commit e549d644a9
395 changed files with 1849 additions and 10246 deletions
+5 -3
View File
@@ -2,13 +2,15 @@
import base64
import os
import re
import time
import urllib
from core import config
from core import httptools
from core import logger
from core import scrapertools
from lib import jsunpack
from platformcode import config, logger
def test_video_exists(page_url):
@@ -66,7 +68,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
fname = scrapertools.find_single_match(data, 'name="fname" value="([^"]+)"')
hash_f = scrapertools.find_single_match(data, 'name="hash" value="([^"]+)"')
post = 'op=download1&usr_login=&id=%s&fname=%s&referer=&hash=%s&imhuman=Proceed+to+video' % (
flashx_id, urllib.quote(fname), hash_f)
flashx_id, urllib.quote(fname), hash_f)
wait_time = scrapertools.find_single_match(data, "<span id='xxc2'>(\d+)")
file_id = scrapertools.find_single_match(data, "'file_id', '([^']+)'")
@@ -106,7 +108,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
# Extrae la URL
# {file:"http://f11-play.flashx.tv/luq4gfc7gxixexzw6v4lhz4xqslgqmqku7gxjf4bk43u4qvwzsadrjsozxoa/video1.mp4"}
video_urls = []
match = match.replace("\\", "").replace('\"', "\'")
match = match.replace("\\","").replace('\"',"\'")
media_urls = scrapertools.find_multiple_matches(match, "{src:'([^']+)'.*?,label:'([^']+)'")
subtitle = ""
for media_url, label in media_urls: