From 38e836f80462c5d82ddc5818bcb81ce109b723e9 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 12 Oct 2023 21:19:40 +0300 Subject: [PATCH] fix 500 error --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index f81029e24..d6acdb600 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -350,7 +350,7 @@ def handle_youtube_links(url): if isinstance(t, str): t = t.replace('s','').replace('S','') split = t.split('m') - if len(split) == 2: + if len(split) == 2 and split[1]: minutes = int(split[0]) seconds = int(split[1]) t = minutes*60 + seconds