From: Oleg Broytman Date: Tue, 10 Sep 2024 13:04:48 +0000 (+0300) Subject: Refactor(Robots): Most robots do not store FTP welcome message X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=86018abc82869ab7e210ef3425c5539829281514;p=bookmarks_db.git Refactor(Robots): Most robots do not store FTP welcome message --- diff --git a/Robots/base.py b/Robots/base.py index b2e2dd9..5cb671c 100644 --- a/Robots/base.py +++ b/Robots/base.py @@ -424,6 +424,9 @@ class robot_base(Robot): moved = moved.encode('utf-8') self.log(' Moved: %s' % moved) + def get_ftp_welcome(self): + return '' # Not all robots store FTP welcome message + def finish_check_url(self, bookmark): start = self.start bookmark.last_tested = str(start) diff --git a/Robots/bkmk_raio.py b/Robots/bkmk_raio.py index f4082c6..2e93d32 100644 --- a/Robots/bkmk_raio.py +++ b/Robots/bkmk_raio.py @@ -130,9 +130,6 @@ class robot_aio(multi_mixin): else: log(' No logs') - def get_ftp_welcome(self): - return '' # We don't store welcome message yet - def stop(self): super(robot_aio, self).stop() self.loop.close() diff --git a/Robots/bkmk_rcurl.py b/Robots/bkmk_rcurl.py index 6407153..7bd0907 100644 --- a/Robots/bkmk_rcurl.py +++ b/Robots/bkmk_rcurl.py @@ -65,9 +65,6 @@ class robot_curl(cf_multithread): if num_handles == 0: sleep(1) - def get_ftp_welcome(self): - return '' # We don't store welcome message yet - class CurlWrapper: def __init__(self, robot, url, req_headers, use_proxy): diff --git a/Robots/bkmk_rtwisted.py b/Robots/bkmk_rtwisted.py index f5f2f29..47e09da 100644 --- a/Robots/bkmk_rtwisted.py +++ b/Robots/bkmk_rtwisted.py @@ -109,6 +109,3 @@ class robot_twisted(cf_multithread): d.addErrback(self.cbError, queue, timeoutCall) sleep(0.1) - - def get_ftp_welcome(self): - return '' # We don't store welcome message yet