mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 05:26:37 +00:00
parent
8d89cc01f9
commit
4dbb0c5196
@ -221,7 +221,7 @@ def media_post_delete(sender, instance, **kwargs):
|
|||||||
video_path = Path(str(instance.media_file.path)).resolve()
|
video_path = Path(str(instance.media_file.path)).resolve()
|
||||||
instance.media_file.delete(save=False)
|
instance.media_file.delete(save=False)
|
||||||
# the other files we created have these known suffixes
|
# the other files we created have these known suffixes
|
||||||
for suffix in frozenset(('nfo', 'jpg', 'webp', 'info.json',)):
|
for suffix in frozenset(('nfo', 'jpg', 'webp', 'vtt', 'info.json',)):
|
||||||
other_path = video_path.with_suffix(f'.{suffix}').resolve()
|
other_path = video_path.with_suffix(f'.{suffix}').resolve()
|
||||||
log.info(f'Deleting file for: {instance} path: {other_path!s}')
|
log.info(f'Deleting file for: {instance} path: {other_path!s}')
|
||||||
delete_file(other_path)
|
delete_file(other_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user