diff --git a/couchpotato/core/plugins/renamer/__init__.py b/couchpotato/core/plugins/renamer/__init__.py index 0e46396c..d80618bd 100644 --- a/couchpotato/core/plugins/renamer/__init__.py +++ b/couchpotato/core/plugins/renamer/__init__.py @@ -113,17 +113,11 @@ config = [{ 'description': 'Replace all the spaces with a character. Example: ".", "-" (without quotes). Leave empty to use spaces.', }, { - 'name': 'hardlink', - 'type': 'bool', - 'description': 'Use hard links instead of moving files, ideal for Torrent users. NOTE: From location and to location needs to be on the same drive/partition.', - 'default': False, - 'advanced': True, - }, - { - 'name': 'symlink', - 'type': 'bool', - 'description': 'Use sym links instead of moving files.', - 'default': False, + 'name': 'links', + 'default': '0', + 'type': 'dropdown', + 'values': [('Disable', 0), ('Hard link', 'hard'), ('Sym link', 'sym')], + 'description': 'Use hard links or sym links instead of moving files, ideal for Torrent users.', 'advanced': True, }, { diff --git a/couchpotato/core/plugins/renamer/main.py b/couchpotato/core/plugins/renamer/main.py index cd3447d2..e4becf52 100644 --- a/couchpotato/core/plugins/renamer/main.py +++ b/couchpotato/core/plugins/renamer/main.py @@ -524,9 +524,9 @@ class Renamer(Plugin): def moveFile(self, old, dest): dest = ss(dest) try: - if self.conf('hardlink') and not self.conf('symlink'): + if self.conf('link') == 'hard': linktastic.link(old, dest) - elif self.conf('symlink') and not self.conf('hardlink'): + elif self.conf('link') == 'sym': linktastic.symlink(old, dest) else: shutil.move(old, dest)