diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-20 11:44:55 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-06-20 11:44:55 +0530 |
commit | 7b2c3f47c6b586a208655fcfc716bba3f8619d1e (patch) | |
tree | 5e46cf9a1dc7adb8cd8d87f8faae97a5b57fe1b3 /yt_dlp/extractor/common.py | |
parent | 8aa0e7cd96a1e2f315d49744793ae07f6543ce4c (diff) | |
download | hypervideo-pre-7b2c3f47c6b586a208655fcfc716bba3f8619d1e.tar.lz hypervideo-pre-7b2c3f47c6b586a208655fcfc716bba3f8619d1e.tar.xz hypervideo-pre-7b2c3f47c6b586a208655fcfc716bba3f8619d1e.zip |
[cleanup] Misc
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 3e3e55798..3e8ba5bdd 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 is not None: + if base_url_e and base_url_e.text: base_url = base_url_e.text + base_url if re.match(r'^https?://', base_url): break |