From e69adafcec62847fb48ccfa7e95674eb8cd30a6d Mon Sep 17 00:00:00 2001 From: Laurent DEFERT Date: Wed, 28 Dec 2022 18:37:55 +0100 Subject: [PATCH] fix deleting media files --- tubesync/sync/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/views.py b/tubesync/sync/views.py index 0da9df8..62d59f8 100644 --- a/tubesync/sync/views.py +++ b/tubesync/sync/views.py @@ -416,7 +416,7 @@ class DeleteSourceView(DeleteView, FormMixin): for media in Media.objects.filter(source=source): if media.media_file: # Delete the media file - delete_file(media.media_file.name) + delete_file(media.media_file.path) # Delete thumbnail copy if it exists delete_file(media.thumbpath) # Delete NFO file if it exists