master
Aevann1 2022-05-22 18:19:57 +02:00
parent 10723940d1
commit a4ca9fc1aa
1 changed files with 2 additions and 0 deletions

View File

@ -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