mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 21:46:44 +00:00
Do not unset Media.media_file
This could be a temporary condition, and keeping the old path in the database is not harmful for the software.
This commit is contained in:
parent
afcefc04c1
commit
e5f76efebf
@ -187,7 +187,6 @@ def media_post_save(sender, instance, created, **kwargs):
|
|||||||
if instance.can_download and instance.downloaded:
|
if instance.can_download and instance.downloaded:
|
||||||
skip_changed = True != instance.skip
|
skip_changed = True != instance.skip
|
||||||
instance.skip = True
|
instance.skip = True
|
||||||
instance.media_file = None
|
|
||||||
downloaded = False
|
downloaded = False
|
||||||
if (instance.source.download_media and instance.can_download) and not (
|
if (instance.source.download_media and instance.can_download) and not (
|
||||||
instance.skip or downloaded or existing_media_download_task):
|
instance.skip or downloaded or existing_media_download_task):
|
||||||
|
Loading…
Reference in New Issue
Block a user