Пример #1
0
 def sendToPyLoad(self, siteResult = False):
     from resources.lib.handler.pyLoadHandler import cPyLoadHandler
     logger.info('attempt download with pyLoad')
     data = self._getInfoAndResolve(siteResult)
     if not data: return False
     cPyLoadHandler().sendToPyLoad(data['title'],data['link'])
     return True
Пример #2
0
    def sendToPyLoad(self, siteResult = False):
        from resources.lib.handler.pyLoadHandler import cPyLoadHandler
        import urlresolver
        params = ParameterHandler()

        sMediaUrl = params.getValue('sMediaUrl')
        sFileName = params.getValue('MovieTitle')
        if not sFileName:
            sFileName = params.getValue('Title')
        if not sFileName: #nur vorrübergehend
            sFileName = params.getValue('sMovieTitle')
        if not sFileName:
            sFileName = params.getValue('title')

        if siteResult:
            sMediaUrl = siteResult['streamUrl']
            if siteResult['resolved']:
                sLink = sMediaUrl
            else:
                sLink = urlresolver.resolve(sMediaUrl)
        else:
            sLink = urlresolver.resolve(sMediaUrl)   
        try:
            msg = sLink.msg
        except:
            msg = False
        if sLink != False and not msg:
            logger.info('download with pyLoad: ' + sMediaUrl)
            cPyLoadHandler().sendToPyLoad(sFileName,sLink)
            return True
        else:
            cGui().showError('xStream', str(msg), 5)
            return False
Пример #3
0
 def sendToPyLoad(self, siteResult=False):
     from resources.lib.handler.pyLoadHandler import cPyLoadHandler
     logger.info('attempt download with pyLoad')
     data = self._getInfoAndResolve(siteResult)
     if not data: return False
     cPyLoadHandler().sendToPyLoad(data['title'], data['link'])
     return True
Пример #4
0
    def sendToPyLoad(self, siteResult=False):
        from resources.lib.handler.pyLoadHandler import cPyLoadHandler
        import urlresolver
        params = ParameterHandler()

        sMediaUrl = params.getValue('sMediaUrl')
        sFileName = params.getValue('MovieTitle')
        if not sFileName:
            sFileName = params.getValue('Title')
        if not sFileName:  #nur vorrübergehend
            sFileName = params.getValue('sMovieTitle')
        if not sFileName:
            sFileName = params.getValue('title')

        if siteResult:
            sMediaUrl = siteResult['streamUrl']
            if siteResult['resolved']:
                sLink = sMediaUrl
            else:
                sLink = urlresolver.resolve(sMediaUrl)
        else:
            sLink = urlresolver.resolve(sMediaUrl)
        try:
            msg = sLink.msg
        except:
            msg = False
        if sLink != False and not msg:
            logger.info('download with pyLoad: ' + sMediaUrl)
            cPyLoadHandler().sendToPyLoad(sFileName, sLink)
            return True
        else:
            cGui().showError('xStream', str(msg), 5)
            return False
Пример #5
0
 def sendToPyLoad(self, sMediaUrl = False):
     params = ParameterHandler()      
     sHosterIdentifier = params.getValue('sHosterIdentifier')
     if not sMediaUrl:            
         sMediaUrl = params.getValue('sMediaUrl')            
     sFileName = params.getValue('sFileName')
     if self.dialog:
         self.dialog.close()
     logger.info('call send to PyLoad: ' + sMediaUrl)       
     cPyLoadHandler().sendToPyLoad(sMediaUrl)
Пример #6
0
    def sendToPyLoad(self, sMediaUrl=False):
        from resources.lib.handler.pyLoadHandler import cPyLoadHandler

        params = ParameterHandler()
        sHosterIdentifier = params.getValue("sHosterIdentifier")
        if not sMediaUrl:
            sMediaUrl = params.getValue("sMediaUrl")
        sFileName = params.getValue("sFileName")
        if self.dialog:
            self.dialog.close()
        logger.info("call send to PyLoad: " + sMediaUrl)
        cPyLoadHandler().sendToPyLoad(sMediaUrl)