From a4ca9fc1aabcbc43a434a1a77cfd34386ae48b2a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 22 May 2022 18:19:57 +0200 Subject: [PATCH] fds --- files/helpers/media.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/helpers/media.py b/files/helpers/media.py index 37ad14ca2..b78401258 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -20,8 +20,10 @@ def process_video(file): try: url = req['files'][0]['url'] except: return {"error": req['description']} + if SITE_NAME != 'rDrama' or os.stat(f'{name}.mp4').st_size > 8 * 1024 * 1024: os.remove(f"{name}.mp4") + return url