diff --git a/lbrynet/lbrynet_console/ControlHandlers.py b/lbrynet/lbrynet_console/ControlHandlers.py index 4a5954f9d..77a9562c6 100644 --- a/lbrynet/lbrynet_console/ControlHandlers.py +++ b/lbrynet/lbrynet_console/ControlHandlers.py @@ -2362,52 +2362,52 @@ class StatusFactory(CommandHandlerFactory): "to remove the file." -class AutoFetcherStart(CommandHandler): - def __init__(self, console, autofetcher): - CommandHandler.__init__(self, console) - self.autofetcher = autofetcher - - def start(self): - self.autofetcher.start(self.console) - self.finished_deferred.callback(None) +# class AutoFetcherStart(CommandHandler): +# def __init__(self, console, autofetcher): +# CommandHandler.__init__(self, console) +# self.autofetcher = autofetcher +# +# def start(self): +# self.autofetcher.start(self.console) +# self.finished_deferred.callback(None) +# +# +# class AutoFetcherStop(CommandHandler): +# def __init__(self, console, autofetcher): +# CommandHandler.__init__(self, console) +# self.autofetcher = autofetcher +# +# def start(self): +# self.autofetcher.stop(self.console) +# self.finished_deferred.callback(None) +# +# +# class AutoFetcherStatus(CommandHandler): +# def __init__(self, console, autofetcher): +# CommandHandler.__init__(self, console) +# self.autofetcher = autofetcher +# +# def start(self): +# self.autofetcher.check_if_running(self.console) +# self.finished_deferred.callback(None) -class AutoFetcherStop(CommandHandler): - def __init__(self, console, autofetcher): - CommandHandler.__init__(self, console) - self.autofetcher = autofetcher - - def start(self): - self.autofetcher.stop(self.console) - self.finished_deferred.callback(None) - - -class AutoFetcherStatus(CommandHandler): - def __init__(self, console, autofetcher): - CommandHandler.__init__(self, console) - self.autofetcher = autofetcher - - def start(self): - self.autofetcher.check_if_running(self.console) - self.finished_deferred.callback(None) - - -class AutoFetcherStartFactory(CommandHandlerFactory): - control_handler_class = AutoFetcherStart - command = "start-autofetcher" - short_help = "Start downloading all lbry files as they are published" - - -class AutoFetcherStopFactory(CommandHandlerFactory): - control_handler_class = AutoFetcherStop - command = "stop-autofetcher" - short_help = "Stop downloading all lbry files as they are published" - - -class AutoFetcherStatusFactory(CommandHandlerFactory): - control_handler_class = AutoFetcherStatus - command = "autofetcher-status" - short_help = "Check autofetcher status" +# class AutoFetcherStartFactory(CommandHandlerFactory): +# control_handler_class = AutoFetcherStart +# command = "start-autofetcher" +# short_help = "Start downloading all lbry files as they are published" +# +# +# class AutoFetcherStopFactory(CommandHandlerFactory): +# control_handler_class = AutoFetcherStop +# command = "stop-autofetcher" +# short_help = "Stop downloading all lbry files as they are published" +# +# +# class AutoFetcherStatusFactory(CommandHandlerFactory): +# control_handler_class = AutoFetcherStatus +# command = "autofetcher-status" +# short_help = "Check autofetcher status" class BlockchainStatus(CommandHandler): diff --git a/lbrynet/lbrynet_console/LBRYConsole.py b/lbrynet/lbrynet_console/LBRYConsole.py index 226716b6e..2d473bcb7 100644 --- a/lbrynet/lbrynet_console/LBRYConsole.py +++ b/lbrynet/lbrynet_console/LBRYConsole.py @@ -370,9 +370,9 @@ class LBRYConsole(): AddStreamFromHashFactory(self.sd_identifier, self.session), StatusFactory(self, self.session.rate_limiter, self.lbry_file_manager, self.session.blob_manager, self.session.wallet if self.wallet_type == 'lbrycrd' else None), - AutoFetcherStartFactory(self.autofetcher), - AutoFetcherStopFactory(self.autofetcher), - AutoFetcherStatusFactory(self.autofetcher), + # AutoFetcherStartFactory(self.autofetcher), + # AutoFetcherStopFactory(self.autofetcher), + # AutoFetcherStatusFactory(self.autofetcher), ImmediateAnnounceAllBlobsFactory(self.session.blob_manager) ] self.add_control_handlers(handlers)