Changeset 39357


Ignore:
Timestamp:
Nov 19, 2016, 7:11:11 PM (3 years ago)
Author:
obi
Message:

fix bs an vivo

Location:
titan/mediathek
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/mediathek/localhoster/vivo.py

    r39356 r39357  
    55import sys
    66from lib.net import Net
     7import base64
     8import json
    79
    810class VivoResolver(object):
    9     name = "vidzi"
    10     domains = ["vidzi.tv"]
    11     pattern = '(?://|\.)(vidzi\.tv)/(?:embed-)?([0-9a-zA-Z]+)'
     11    name = "vivosx"
     12    domains = ["vivo.sx"]
     13    pattern = '(?://|\.)(vivo\.sx)/([0-9a-zA-Z]+)'
    1214
    1315    def __init__(self):
  • titan/mediathek/localparser_secret/bs.sh

    r39008 r39357  
    248248#    <br style="clear:both;"/>
    249249
     250
     251#function followlocation()
     252#{
     253#       system("curlbin -s -D - $1 | grep Location: | tail -n1")
     254#}
     255
    250256hoster()
    251257{
     
    290296#                  print "Originalvideo#" url "#http://atemio.dyndns.tv/mediathek/menu/default.jpg#default.jpg#" NAME "#140"
    291297#                  print title "#" url "#http://atemio.dyndns.tv/mediathek/menu/" title ".jpg#" title ".jpg#" NAME "#14"
    292                   print url
     298
     299tmp = "curl -k -s -L --cookie /mnt/network/cookies --cookie-jar /mnt/network/cookies -A \"Mozilla\/5.0 \(Windows NT 6.3\; WOW64\) AppleWebKit\/537.36 \(KHTML, like Gecko\) Maxthon\/4.4.7.3000 Chrome\/30.0.1599.101 Safari\/537.36\" -s -D - " url " | grep Location: | tail -n1 | cut -d \" \" -f2"
     300#tmp = "curl -s -D - " url " | grep Location: | tail -n1"
     301
     302                                        while ((tmp | getline) > 0)
     303                                           print
     304                                           #print tmp
     305                                           #print $0
     306                                       
     307                                        close(tmp)
    293308               }
    294309               next
Note: See TracChangeset for help on using the changeset viewer.