append label unnecessary
just set the full path to the dir
This commit is contained in:
@@ -58,14 +58,6 @@ config = [{
|
|||||||
'advanced': True,
|
'advanced': True,
|
||||||
'description': 'Also remove the leftover files.',
|
'description': 'Also remove the leftover files.',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'name': 'append_label',
|
|
||||||
'label': 'Append Label',
|
|
||||||
'default': False,
|
|
||||||
'advanced': True,
|
|
||||||
'type': 'bool',
|
|
||||||
'description': 'Append label to download location. Requires you to set the download location above.',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'name': 'paused',
|
'name': 'paused',
|
||||||
'type': 'bool',
|
'type': 'bool',
|
||||||
|
|||||||
@@ -125,9 +125,7 @@ class rTorrent(Downloader):
|
|||||||
if self.conf('label'):
|
if self.conf('label'):
|
||||||
torrent.set_custom(1, self.conf('label'))
|
torrent.set_custom(1, self.conf('label'))
|
||||||
|
|
||||||
if self.conf('directory') and self.conf('append_label'):
|
if self.conf('directory'):
|
||||||
torrent.set_directory(os.path.join(self.conf('directory'), self.conf('label')))
|
|
||||||
elif self.conf('directory'):
|
|
||||||
torrent.set_directory(self.conf('directory'))
|
torrent.set_directory(self.conf('directory'))
|
||||||
|
|
||||||
# Set Ratio Group
|
# Set Ratio Group
|
||||||
|
|||||||
Reference in New Issue
Block a user