Actualizados
- allcalidad: Cambio de dominio - animeflv: Correción - streamcloud - Actualización interna
This commit is contained in:
@@ -51,23 +51,6 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
# Set-Cookie3: auth=3315964ab4fac585fdd9d4228dc70264a1756ba; path="/"; domain=".uploaded.to"; path_spec; domain_dot; expires="2015-02-25 18:35:37Z"; version=0
|
||||
# Set-Cookie3: login="%26id%3D3315964%26pw%3Dde135af0befa087e897ee6bfa78f2511a1ed093f%26cks%3D854cca559368"; path="/"; domain=".uploaded.to"; path_spec; domain_dot; expires="2013-02-25 18:35:37Z"; version=0
|
||||
|
||||
'''
|
||||
#cookie_data=config.get_cookie_data()
|
||||
#logger.info("cookie_data="+cookie_data)
|
||||
cookie_data = setcookie
|
||||
auth = scrapertools.get_match( cookie_data , 'auth=([a-z0-9]+)' )
|
||||
logger.info("auth="+auth)
|
||||
#%26id%3D7308170%26pw%3Df14c8daa489647d758a88474f509cd4277980f6b%26cks%3D204cffc6c96f
|
||||
login = scrapertools.get_match( cookie_data , 'login=([a-zA-Z0-9\%]+)' )
|
||||
logger.info("login="+login)
|
||||
|
||||
headers.append([ "Cookie", 'login='+login+'; auth='+auth])
|
||||
temp_location = scrapertools.get_header_from_response( location , header_to_get = "location" , headers=headers)
|
||||
logger.info("temp_location="+temp_location)
|
||||
|
||||
#location = location + "|Cookie="+urllib.quote('login='+login+'; auth='+auth)
|
||||
location = temp_location '''
|
||||
|
||||
logger.info("-------------------------------------------")
|
||||
logger.info("obtiene el nombre del fichero")
|
||||
logger.info("-------------------------------------------")
|
||||
@@ -77,7 +60,7 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
only_headers=True).headers.get("content-disposition", "")
|
||||
logger.info("content_disposition=" + repr(content_disposition))
|
||||
if content_disposition != "":
|
||||
filename = scrapertools.get_match(content_disposition, 'filename="([^"]+)"')
|
||||
filename = scrapertools.find_single_match(content_disposition, 'filename="([^"]+)"')
|
||||
extension = filename[-4:]
|
||||
else:
|
||||
extension = ""
|
||||
@@ -87,13 +70,6 @@ def get_video_url(page_url, premium=False, user="", password="", video_password=
|
||||
logger.error(traceback.format_exc())
|
||||
extension = ""
|
||||
|
||||
'''
|
||||
temp_location = scrapertools.get_header_from_response( location , header_to_get = "location" , headers=headers)
|
||||
logger.info("temp_location="+temp_location)
|
||||
if temp_location!="":
|
||||
location = temp_location
|
||||
'''
|
||||
|
||||
video_urls.append([extension + " (Premium) [uploaded.to]", location])
|
||||
|
||||
for video_url in video_urls:
|
||||
|
||||
Reference in New Issue
Block a user