Prevent files keyerror for release_download files. fix #2392
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user