aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-06-20 11:55:54 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-06-20 12:03:35 +0530
commit612f2be5d3924540158dfbe5f25d841f04cff8c6 (patch)
tree0c97abc1c701eac89affb4c72ab9d8ee1e0f63ab /yt_dlp/extractor/common.py
parent6d1b34896e69c4e53d8f960bf4b3867bca1c129c (diff)
Bugfix for 7b2c3f47c6b586a208655fcfc716bba3f8619d1e
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 3e8ba5bdd..3e3e55798 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -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