Ignore:
Timestamp:
11/19/16 16:32:54 (6 years ago)
Author:
obi
Message:

fix vidzi

File:
1 edited

Legend:

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

    r39352 r39354  
    66from lib.net import Net
    77from lib import helpers
     8import lib.common as common
    89
    910class MovshareResolver(object):
     
    5152            headers.update({'Referer': web_url, })
    5253            print stream_url + helpers.append_headers(headers)
     54#        else:
     55#            raise ResolverError('File Not Found or removed')
    5356
    5457    def get_url(self, host, media_id):
    5558        if 'vidgg' in host:
    56             template = 'http://{host}/embed/?id={media_id}'
     59            return 'http://%s/embed/?id=%s' % (host, media_id)
     60#            template = 'http://{host}/embed/?id={media_id}'
    5761        else:
    58             template = 'http://{host}/embed/?v={media_id}'
     62            return 'http://%s/embed/?v=%s' % (host, media_id)
     63#           template = 'http://{host}/embed/?v={media_id}'
    5964        print self._default_get_url(host, media_id, template)
    6065
Note: See TracChangeset for help on using the changeset viewer.