示例#1
0
 def sendToJDownloader(self, sMediaUrl=False):
     from resources.lib.handler.jdownloaderHandler import cJDownloaderHandler
     params = ParameterHandler()
     if not sMediaUrl:
         sMediaUrl = params.getValue('sMediaUrl')
     if self.dialog:
         self.dialog.close()
     logger.info('call send to JDownloader: ' + sMediaUrl)
     cJDownloaderHandler().sendToJDownloader(sMediaUrl)
示例#2
0
 def sendToJDownloader(self, sMediaUrl = False):
     from resources.lib.handler.jdownloaderHandler import cJDownloaderHandler
     params = ParameterHandler()
     if not sMediaUrl:
         sMediaUrl = params.getValue('sMediaUrl')
     sFileName = params.getValue('sFileName')
     if self.dialog:
         self.dialog.close()
     logger.info('call send to JDownloader: ' + sMediaUrl)
     cJDownloaderHandler().sendToJDownloader(sMediaUrl)
示例#3
0
    def sendToJDownloader(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 JDownloader: ' + sMediaUrl)       
        cJDownloaderHandler().sendToJDownloader(sMediaUrl)
示例#4
0
    def sendToJDownloader(self, sMediaUrl=False):
        from resources.lib.handler.jdownloaderHandler import cJDownloaderHandler

        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 JDownloader: " + sMediaUrl)
        cJDownloaderHandler().sendToJDownloader(sMediaUrl)
示例#5
0
    def sendToJDownloader(self):
        oInputParameterHandler = cInputParameterHandler()

        sMediaUrl = oInputParameterHandler.getValue('sMediaUrl')
        bGetRedirectUrl = oInputParameterHandler.getValue('bGetRedirectUrl')

        if (bGetRedirectUrl == 'True'):
            sMediaUrl = self.__getRedirectUrl(sMediaUrl)

        logger.info('call send to JDownloader: ' + sMediaUrl)

        cJDownloaderHandler().sendToJDownloader(sMediaUrl)
    def sendToJDownloader(self):
        oGui = cGui()
        oInputParameterHandler = cInputParameterHandler()

        sHosterIdentifier = oInputParameterHandler.getValue("sHosterIdentifier")
        sMediaUrl = oInputParameterHandler.getValue("sMediaUrl")
        bGetRedirectUrl = oInputParameterHandler.getValue("bGetRedirectUrl")
        sFileName = oInputParameterHandler.getValue("sFileName")

        if bGetRedirectUrl == "True":
            sMediaUrl = self.__getRedirectUrl(sMediaUrl)

        logger.info("call send to JDownloader: " + sMediaUrl)

        cJDownloaderHandler().sendToJDownloader(sMediaUrl)
示例#7
0
    def sendToJDownloader(self):
        oGui = cGui()
        oInputParameterHandler = cInputParameterHandler()

        sHosterIdentifier = oInputParameterHandler.getValue('sHosterIdentifier')
        sMediaUrl = oInputParameterHandler.getValue('sMediaUrl')
        bGetRedirectUrl = oInputParameterHandler.getValue('bGetRedirectUrl')
        sFileName = oInputParameterHandler.getValue('sFileName')

        if (bGetRedirectUrl == 'True'):
            sMediaUrl = self.__getRedirectUrl(sMediaUrl)

        logger.info('call send to JDownloader: ' + sMediaUrl)

        cJDownloaderHandler().sendToJDownloader(sMediaUrl)
示例#8
0
    def sendToJDownloader(self):
        oGui = cGui()
        oInputParameterHandler = cInputParameterHandler()

        sHosterIdentifier = oInputParameterHandler.getValue(
            'sHosterIdentifier')
        sMediaUrl = oInputParameterHandler.getValue('sMediaUrl')
        bGetRedirectUrl = oInputParameterHandler.getValue('bGetRedirectUrl')
        sFileName = oInputParameterHandler.getValue('sFileName')

        if (bGetRedirectUrl == 'True'):
            sMediaUrl = self.__getRedirectUrl(sMediaUrl)

        logger.info('call send to JDownloader: ' + sMediaUrl)

        cJDownloaderHandler().sendToJDownloader(sMediaUrl)
示例#9
0
    def sendToJDownbloader(self):
        oGui = cGui()
        oInputParameterHandler = cInputParameterHandler()

        sHosterIdentifier = oInputParameterHandler.getValue('sHosterIdentifier')
        sMediaUrl = oInputParameterHandler.getValue('sMediaUrl')
        bGetRedirectUrl = oInputParameterHandler.getValue('bGetRedirectUrl')
        sFileName = oInputParameterHandler.getValue('sFileName')

        if (bGetRedirectUrl == 'True'):
            sMediaUrl = self.__getRedirectUrl(sMediaUrl)

        oHoster = cHosterHandler().getHoster(sHosterIdentifier)
        oHoster.setFileName(sFileName)
        oHoster.setUrl(sMediaUrl)
        sMediaUrl = oHoster.getUrl()

        cConfig().log("Telechargement jdownloader " + sMediaUrl)

        cJDownloaderHandler().sendToJDownloader(sMediaUrl)
示例#10
0
    def sendToJDownbloader(self):
        oGui = cGui()
        oInputParameterHandler = cInputParameterHandler()

        sHosterIdentifier = oInputParameterHandler.getValue('sHosterIdentifier')
        sMediaUrl = oInputParameterHandler.getValue('sMediaUrl')
        bGetRedirectUrl = oInputParameterHandler.getValue('bGetRedirectUrl')
        sFileName = oInputParameterHandler.getValue('sFileName')

        if (bGetRedirectUrl == 'True'):
            sMediaUrl = self.__getRedirectUrl(sMediaUrl)

        oHoster = cHosterHandler().getHoster(sHosterIdentifier)
        oHoster.setFileName(sFileName)
        oHoster.setUrl(sMediaUrl)
        sMediaUrl = oHoster.getUrl()

        cConfig().log("Telechargement jdownloader " + sMediaUrl)

        cJDownloaderHandler().sendToJDownloader(sMediaUrl)