mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Stop when the paths match
This commit is contained in:
parent
26940c86b4
commit
5a477eb97e
@ -1561,6 +1561,8 @@ class Media(models.Model):
|
|||||||
if self.downloaded and self.media_file:
|
if self.downloaded and self.media_file:
|
||||||
old_video_path = Path(self.media_file.path)
|
old_video_path = Path(self.media_file.path)
|
||||||
new_video_path = Path(get_media_file_path(self, None))
|
new_video_path = Path(get_media_file_path(self, None))
|
||||||
|
if old_video_path == new_video_path:
|
||||||
|
return
|
||||||
if old_video_path.exists() and not new_video_path.exists():
|
if old_video_path.exists() and not new_video_path.exists():
|
||||||
old_video_path = old_video_path.resolve(strict=True)
|
old_video_path = old_video_path.resolve(strict=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user