Exemplo n.º 1
0
    def api_params(self):
        if self.indexerID:
            if sickbeard.CACHE_DIR:
                indexerConfig[self.indexerID]['api_params']['cache'] = os.path.join(sickbeard.CACHE_DIR, 'indexers', self.name)
            if sickbeard.PROXY_SETTING and sickbeard.PROXY_INDEXERS:
                (proxy_address, pac_found) = proxy_setting(sickbeard.PROXY_SETTING, indexerConfig[self.indexerID]['base_url'], force=True)
                if proxy_address:
                    indexerConfig[self.indexerID]['api_params']['proxy'] = proxy_address

            return indexerConfig[self.indexerID]['api_params']
Exemplo n.º 2
0
    def api_params(self):
        if self.indexerID:
            if sickbeard.CACHE_DIR:
                indexerConfig[self.indexerID]['api_params']['cache'] = os.path.join(
                    sickbeard.CACHE_DIR, 'indexers', self.name)
            if sickbeard.PROXY_SETTING and sickbeard.PROXY_INDEXERS:
                (proxy_address, pac_found) = proxy_setting(sickbeard.PROXY_SETTING,
                                                           indexerConfig[self.indexerID]['base_url'],
                                                           force=True)
                if proxy_address:
                    indexerConfig[self.indexerID]['api_params']['proxy'] = proxy_address

            return indexerConfig[self.indexerID]['api_params']