예제 #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)
예제 #6
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)
예제 #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)