Browse Source

Prevent files keyerror for release_download files. fix #2392

pull/2357/merge
Ruud 12 years ago
parent
commit
4f4ba470e0
  1. 4
      couchpotato/core/plugins/renamer/main.py

4
couchpotato/core/plugins/renamer/main.py

@ -136,8 +136,8 @@ class Renamer(Plugin):
movie_folder = movie_folder.rstrip(os.path.sep)
folder = os.path.dirname(movie_folder)
if release_download['files']:
files = release_download['files'].split('|')
if release_download.get('files', ''):
files = splitString(release_download['files'], '|')
# If there is only one file in the torrent, the downloader did not create a subfolder
if len(files) == 1:

Loading…
Cancel
Save