forked from LBRYCommunity/lbry-sdk
Disable console autofetcher
This commit is contained in:
parent
75fbedeeac
commit
1abe890067
2 changed files with 47 additions and 47 deletions
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue