Browse Source

Better error message for missing cd number

pull/4054/head
Ruud 11 years ago
parent
commit
c7ce18f8c2
  1. 2
      couchpotato/core/plugins/renamer.py

2
couchpotato/core/plugins/renamer.py

@ -223,7 +223,7 @@ class Renamer(Plugin):
cd_keys = ['<cd>','<cd_nr>', '<original>'] cd_keys = ['<cd>','<cd_nr>', '<original>']
if not any(x in folder_name for x in cd_keys) and not any(x in file_name for x in cd_keys): if not any(x in folder_name for x in cd_keys) and not any(x in file_name for x in cd_keys):
log.error('Missing `cd` or `cd_nr` in the renamer. This will cause multi-file releases of being renamed to the same file. ' log.error('Missing `cd` or `cd_nr` in the renamer. This will cause multi-file releases of being renamed to the same file. '
'Force adding it') 'Please add it in the renamer settings. Force adding it for now.')
file_name = '%s %s' % ('<cd>', file_name) file_name = '%s %s' % ('<cd>', file_name)
# Tag release folder as failed_rename in case no groups were found. This prevents check_snatched from removing the release from the downloader. # Tag release folder as failed_rename in case no groups were found. This prevents check_snatched from removing the release from the downloader.

Loading…
Cancel
Save