Added connection test to the rest of downloaders

This commit is contained in:
mikke89
2014-01-21 00:24:36 +01:00
parent 964ed5f497
commit 009d6cafaf
8 changed files with 95 additions and 4 deletions
+7
View File
@@ -98,6 +98,13 @@ class RTorrent:
"Error: Minimum rTorrent version required is {0}".format(
MIN_RTORRENT_VERSION_STR)
def test_connection(self):
try:
self._verify_conn()
except:
return False
return True
def _meets_version_requirement(self):
return self._get_client_version_tuple() >= MIN_RTORRENT_VERSION