diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 110cefe99..3c0039f76 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -296,17 +296,9 @@ def handle_youtube_links(url): if yt_id_regex.fullmatch(id): if not t: t = params.get('t', params.get('start', [0]))[0] - if isinstance(t, str): - t = t.replace('s','').replace('S','') - split = t.split('m') - if len(split) == 2: - minutes = int(split[0]) - if split[1]: seconds = int(split[1]) - else: seconds = 0 - t = minutes*60 + seconds html = f'' return html