Make sure to untag downloading dir if it's completed. fix #2341
This commit is contained in:
@@ -735,6 +735,10 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
fireEvent('movie.searcher.try_next_release', movie_id = rel.movie_id)
|
fireEvent('movie.searcher.try_next_release', movie_id = rel.movie_id)
|
||||||
elif item['status'] == 'completed':
|
elif item['status'] == 'completed':
|
||||||
log.info('Download of %s completed!', item['name'])
|
log.info('Download of %s completed!', item['name'])
|
||||||
|
|
||||||
|
# Remove the downloading tag
|
||||||
|
self.untagDir(item['folder'], 'downloading')
|
||||||
|
|
||||||
if self.statusInfoComplete(item):
|
if self.statusInfoComplete(item):
|
||||||
|
|
||||||
# If the release has been seeding, process now the seeding is done
|
# If the release has been seeding, process now the seeding is done
|
||||||
@@ -758,9 +762,6 @@ Remove it if you want it to be renamed (again, or at least let it try again)
|
|||||||
# Set the release to snatched if it was missing before
|
# Set the release to snatched if it was missing before
|
||||||
fireEvent('release.update_status', rel.id, status = snatched_status, single = True)
|
fireEvent('release.update_status', rel.id, status = snatched_status, single = True)
|
||||||
|
|
||||||
# Remove the downloading tag
|
|
||||||
self.untagDir(item['folder'], 'downloading')
|
|
||||||
|
|
||||||
# Scan and Allow the downloader to clean-up
|
# Scan and Allow the downloader to clean-up
|
||||||
item.update({'pause': False, 'scan': True, 'process_complete': True})
|
item.update({'pause': False, 'scan': True, 'process_complete': True})
|
||||||
scan_items.append(item)
|
scan_items.append(item)
|
||||||
|
|||||||
Reference in New Issue
Block a user