Variable cleanup
This commit is contained in:
1 parent
8a11f246b1
commit
a9f416c4c5
1 file changed
+6
-1
@@ -656,6 +656,7 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
return
|
return
|
||||||
|
|
||||||
tag_files = []
|
tag_files = []
|
||||||
|
folder = None
|
||||||
|
|
||||||
# Tag movie files if they are known
|
# Tag movie files if they are known
|
||||||
if isinstance(group, dict):
|
if isinstance(group, dict):
|
||||||
@@ -679,6 +680,9 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
if not os.path.isdir(folder):
|
if not os.path.isdir(folder):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
if not folder:
|
||||||
|
return False
|
||||||
|
|
||||||
# Find all .ignore files in folder
|
# Find all .ignore files in folder
|
||||||
ignore_files = []
|
ignore_files = []
|
||||||
for root, dirnames, filenames in os.walk(folder):
|
for root, dirnames, filenames in os.walk(folder):
|
||||||
@@ -892,7 +896,7 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
rel_dict = rel.to_dict({'info': {}})
|
rel_dict = rel.to_dict({'info': {}})
|
||||||
movie_dict = fireEvent('media.get', media_id = rel.movie_id, single = True)
|
movie_dict = fireEvent('media.get', media_id = rel.movie_id, single = True)
|
||||||
|
|
||||||
if not isinstance(rel_dict['info'], (dict)):
|
if not isinstance(rel_dict['info'], dict):
|
||||||
log.error('Faulty release found without any info, ignoring.')
|
log.error('Faulty release found without any info, ignoring.')
|
||||||
fireEvent('release.update_status', rel.id, status = ignored_status, single = True)
|
fireEvent('release.update_status', rel.id, status = ignored_status, single = True)
|
||||||
continue
|
continue
|
||||||
@@ -908,6 +912,7 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
# Find release in downloaders
|
# Find release in downloaders
|
||||||
nzbname = self.createNzbName(rel_dict['info'], movie_dict)
|
nzbname = self.createNzbName(rel_dict['info'], movie_dict)
|
||||||
|
|
||||||
|
found_release = False
|
||||||
for release_download in release_downloads:
|
for release_download in release_downloads:
|
||||||
found_release = False
|
found_release = False
|
||||||
if rel_dict['info'].get('download_id'):
|
if rel_dict['info'].get('download_id'):
|
||||||
|
|||||||
Reference in new issue
Block a user