Changeset 40086 for titan/mediathek/localhoster/openload.py
- Timestamp:
- 02/25/17 01:36:28 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/mediathek/localhoster/openload.py
r39608 r40086 7 7 import lib.ol_gmu as ol_gmu 8 8 import lib.common as common 9 import json 9 10 10 11 #OL_SOURCE = 'https://offshoregit.com/tvaresolvers/ol_gmu.py' … … 53 54 f.write(new_py) 54 55 except Exception as e: 55 print ' Exception during openload code retrieve:'56 print 'errormsg=Exception during openload code retrieve:' 56 57 # common.log_utils.log_warning('Exception during openload code retrieve: %s' % e) 57 58 58 59 def get_media_url(self, host, media_id): 59 60 video_url = "" 61 # js_data = self.__get_json(GET_URL.format(media_id=media_id)) 62 # print "js_data: %s" % (js_data) 60 63 try: 61 self._auto_update(self.get_setting('url'), OL_PATH, self.get_setting('key'))64 # self._auto_update(self.get_setting('url'), OL_PATH, self.get_setting('key')) 62 65 reload(ol_gmu) 63 66 return ol_gmu.get_media_url(self.get_url(host, media_id)) # @UndefinedVariable 64 67 except Exception as e: 68 # print "Exception during openload resolve parse: %s" % (e) 65 69 # common.log_utils.log_debug('Exception during openload resolve parse: %s' % (e)) 66 70 try: … … 70 74 #except ResolverError: 71 75 except Exception as e: 72 print " raise"76 print "errormsg=streamlink not found" 73 77 # raise 74 78 … … 98 102 status, msg = e 99 103 if status == 403: 104 print "errormsg=%s" % (e) 100 105 return 101 # else: 106 else: 107 print "errormsg=%s" % (msg) 102 108 # raise ResolverError(msg) 103 109
Note: See TracChangeset
for help on using the changeset viewer.