From a9e105f9eb85e93ef57cf9d5e6c0e8b7547c1d76 Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 24 Nov 2015 01:17:47 -0500 Subject: [PATCH] Make autofetcher ignore key payments --- lbrynet/core/client/AutoDownloader.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lbrynet/core/client/AutoDownloader.py b/lbrynet/core/client/AutoDownloader.py index 5ebcea353..70edce257 100644 --- a/lbrynet/core/client/AutoDownloader.py +++ b/lbrynet/core/client/AutoDownloader.py @@ -52,9 +52,10 @@ class AutoAddStream(object): self.stream_hash = json.loads(self.stream_info['value'])['stream_hash'] if self.key_fee > self.max_key_fee: - self.console.sendLine("Key fee (" + str(self.key_fee) + ") above limit of " + str( - self.max_key_fee) + ", didn't download lbry://" + str(self.resolved_name)) - return self.finished_deferred.callback(None) + pass + # self.console.sendLine("Key fee (" + str(self.key_fee) + ") above limit of " + str( + # self.max_key_fee) + ", didn't download lbry://" + str(self.resolved_name)) + # return self.finished_deferred.callback(None) self.loading_metadata_deferred = defer.Deferred(None) self.loading_metadata_deferred.addCallback( @@ -69,7 +70,8 @@ class AutoAddStream(object): return self.finished_deferred.callback(None) def _start_download(self): - d = self._pay_key_fee() + #d = self._pay_key_fee() + d = defer.Deferred(None) d.addCallback(lambda _: self._make_downloader()) d.addCallback(lambda stream_downloader: stream_downloader.start()) d.addErrback(self._handle_download_error)