Strip trailing slash from base

Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
sepro 2024-02-19 23:17:09 +01:00 committed by GitHub
parent bd621a4d2b
commit 09e8ee0d9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2334,7 +2334,7 @@ def _parse_smil_formats_and_subtitles(
for meta in smil.findall(self._xpath_ns('./head/meta', namespace)):
b = meta.get('base') or meta.get('httpBase')
if b:
base = f'{b}/'
base = f'{b.rstrip("/")}/'
break
formats, subtitles = [], {}