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)
|
movie_folder = movie_folder.rstrip(os.path.sep)
|
||||||
folder = os.path.dirname(movie_folder)
|
folder = os.path.dirname(movie_folder)
|
||||||
|
|
||||||
if release_download['files']:
|
if release_download.get('files', ''):
|
||||||
files = release_download['files'].split('|')
|
files = splitString(release_download['files'], '|')
|
||||||
|
|
||||||
# If there is only one file in the torrent, the downloader did not create a subfolder
|
# If there is only one file in the torrent, the downloader did not create a subfolder
|
||||||
if len(files) == 1:
|
if len(files) == 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user