1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 00:25:08 +00:00
This commit is contained in:
pukkandan
2022-06-20 11:55:54 +05:30
parent 6d1b34896e
commit 612f2be5d3
2 changed files with 8 additions and 8 deletions

View File

@ -2817,7 +2817,7 @@ class InfoExtractor:
base_url = ''
for element in (representation, adaptation_set, period, mpd_doc):
base_url_e = element.find(_add_ns('BaseURL'))
if base_url_e and base_url_e.text:
if base_url_e is not None:
base_url = base_url_e.text + base_url
if re.match(r'^https?://', base_url):
break