Browse Source

append label unnecessary

just set the full path to the dir
pull/2497/head
Joel Kåberg 12 years ago
parent
commit
4008774908
  1. 8
      couchpotato/core/downloaders/rtorrent/__init__.py
  2. 4
      couchpotato/core/downloaders/rtorrent/main.py

8
couchpotato/core/downloaders/rtorrent/__init__.py

@ -59,14 +59,6 @@ config = [{
'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',
'type': 'bool',
'advanced': True,

4
couchpotato/core/downloaders/rtorrent/main.py

@ -125,9 +125,7 @@ class rTorrent(Downloader):
if self.conf('label'):
torrent.set_custom(1, self.conf('label'))
if self.conf('directory') and self.conf('append_label'):
torrent.set_directory(os.path.join(self.conf('directory'), self.conf('label')))
elif self.conf('directory'):
if self.conf('directory'):
torrent.set_directory(self.conf('directory'))
# Set Ratio Group

Loading…
Cancel
Save