Changeset 44473


Ignore:
Timestamp:
01/02/20 16:21:49 (2 years ago)
Author:
obi
Message:

fix

File:
1 edited

Legend:

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

    r44472 r44473  
    55from lib.net import Net
    66
    7 class VidUpMeResolver(object):
     7class StreamzResolver(object):
    88    name = "streamz"
    9     domains = ['streamz.cc']
    10     pattern = r'(?://|\.)(streamz\.cc)/([0-9a-zA-Z]+)'
     9    domains = ['streamz.cc|streamcrypt.net']
     10    pattern = r'(?://|\.)(streamz\.cc|streamcrypt\.net)/([0-9a-zA-Z]+)'
    1111
    1212    def __init__(self):
     
    1616        media_id = self.get_host_and_id(url)[1]
    1717
    18         return self.get_media_url(host, media_id)
     18        return self.get_media_url(host, media_id, url)
    1919 
    2020    def get_host_and_id(self, url):
     
    2525            return False
    2626
    27     def get_media_url(self, host, media_id):
    28         web_url = self.get_url(host, media_id)
     27    def get_media_url(self, host, media_id, url):
     28        web_url = self.get_url(host, media_id, url)
     29 #       print "web_url", web_url
    2930        html = self.net.http_GET(web_url).content
    3031
     
    5354#                 print stream_url[-1]
    5455
    55     def get_url(self, host, media_id):
    56         return 'http://%s/%s' % (host,media_id)
     56    def get_url(self, host, media_id, url):
     57 #       return 'http://%s/%s' % (host,media_id)
     58        return '%s' % (url)
    5759
    5860
    59 sys.stdout = VidUpMeResolver()
     61sys.stdout = StreamzResolver()
Note: See TracChangeset for help on using the changeset viewer.