Remove prints and actually save deletion
This commit is contained in:
1 parent
894e419f40
commit
81949b9cad
2 files changed
+1
-2
No files matched your search
@@ -29,7 +29,6 @@ class rTorrent(Downloader):
|
|||||||
|
|
||||||
url = self.conf('url')
|
url = self.conf('url')
|
||||||
if url:
|
if url:
|
||||||
print url
|
|
||||||
|
|
||||||
url = 'http://localhost:8080/RPC2teasd/asdasd//'
|
url = 'http://localhost:8080/RPC2teasd/asdasd//'
|
||||||
host_split = splitString(url.split('://')[-1], split_on = '/')
|
host_split = splitString(url.split('://')[-1], split_on = '/')
|
||||||
@@ -39,7 +38,6 @@ class rTorrent(Downloader):
|
|||||||
self.conf('rpc_url', value = '/'.join(host_split[1:]))
|
self.conf('rpc_url', value = '/'.join(host_split[1:]))
|
||||||
|
|
||||||
self.deleteConf('url')
|
self.deleteConf('url')
|
||||||
#self.conf('url', value = '')
|
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
# Already connected?
|
# Already connected?
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ class Settings(object):
|
|||||||
|
|
||||||
def delete(self, option = '', section = 'core'):
|
def delete(self, option = '', section = 'core'):
|
||||||
self.p.remove_option(section, option)
|
self.p.remove_option(section, option)
|
||||||
|
self.save()
|
||||||
|
|
||||||
def getEnabler(self, section, option):
|
def getEnabler(self, section, option):
|
||||||
return self.getBool(section, option)
|
return self.getBool(section, option)
|
||||||
|
|||||||
Reference in new issue
Block a user