Changeset 39354 for titan/mediathek/localhoster/movshare.py
- Timestamp:
- 11/19/16 16:32:54 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/movshare.py
r39352 r39354 6 6 from lib.net import Net 7 7 from lib import helpers 8 import lib.common as common 8 9 9 10 class MovshareResolver(object): … … 51 52 headers.update({'Referer': web_url, }) 52 53 print stream_url + helpers.append_headers(headers) 54 # else: 55 # raise ResolverError('File Not Found or removed') 53 56 54 57 def get_url(self, host, media_id): 55 58 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}' 57 61 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}' 59 64 print self._default_get_url(host, media_id, template) 60 65
Note: See TracChangeset
for help on using the changeset viewer.