Ignore:
Timestamp:
02/25/17 01:36:28 (6 years ago)
Author:
obi
Message:

fix openload

File:
1 edited

Legend:

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

    r39608 r40086  
    77import lib.ol_gmu as ol_gmu
    88import lib.common as common
     9import json
    910
    1011#OL_SOURCE = 'https://offshoregit.com/tvaresolvers/ol_gmu.py'
     
    5354                    f.write(new_py)
    5455        except Exception as e:
    55              print 'Exception during openload code retrieve:'
     56             print 'errormsg=Exception during openload code retrieve:'
    5657#            common.log_utils.log_warning('Exception during openload code retrieve: %s' % e)
    5758           
    5859    def get_media_url(self, host, media_id):
    5960        video_url = ""
     61#        js_data = self.__get_json(GET_URL.format(media_id=media_id))
     62#        print "js_data: %s" % (js_data)
    6063        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'))
    6265            reload(ol_gmu)
    6366            return ol_gmu.get_media_url(self.get_url(host, media_id))  # @UndefinedVariable
    6467        except Exception as e:
     68#            print "Exception during openload resolve parse: %s" % (e)
    6569#            common.log_utils.log_debug('Exception during openload resolve parse: %s' % (e))
    6670            try:
     
    7074            #except ResolverError:
    7175            except Exception as e:
    72                 print "raise"
     76                print "errormsg=streamlink not found"
    7377               # raise
    7478           
     
    98102            status, msg = e
    99103            if status == 403:
     104                print "errormsg=%s" % (e)
    100105                return
    101 #            else:
     106            else:
     107                print "errormsg=%s" % (msg)
    102108#                raise ResolverError(msg)
    103109       
Note: See TracChangeset for help on using the changeset viewer.