From 335c572aaf3915d320c310102ef4b7ceff5a191b Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 18 Mar 2023 07:41:22 +0200 Subject: [PATCH] fix undefined variable --- files/helpers/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index ee90a14f3..d047afda2 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -22,7 +22,7 @@ from .config.const import * def remove_media_using_link(path): if path.startswith(SITE_FULL_IMAGES): - path = path.split(img_prefix, 1)[1] + path = path.split(SITE_FULL_IMAGES, 1)[1] video_prefix = f'https://videos.{SITE}' if path.startswith(video_prefix):