From 325a8996d8f75206a53ce0993a8e9e30a820ce0f Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 12 Mar 2023 21:07:23 +0200 Subject: [PATCH] fix youtube timestamp edge case --- 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 46b48cf41..008299102 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -321,7 +321,7 @@ def handle_youtube_links(url): if not t: t = params.get('t', params.get('start', [0]))[0] if isinstance(t, str): - t = t.replace('s','') + t = t.replace('s','').replace('S','') split = t.split('m') if len(split) == 2: minutes = int(split[0])