diff options
author | MMM <flashdagger@googlemail.com> | 2022-03-09 22:12:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 13:12:23 -0800 |
commit | 10331a2672bd1fdcbe72f7ca60d1b6202c3783a6 (patch) | |
tree | d422d9a0e7b4dc52618edde8b4f8376e974a5924 | |
parent | 6e6beffd0481bc8e8de950dfb617004ba4ab651e (diff) | |
download | hypervideo-pre-10331a2672bd1fdcbe72f7ca60d1b6202c3783a6.tar.lz hypervideo-pre-10331a2672bd1fdcbe72f7ca60d1b6202c3783a6.tar.xz hypervideo-pre-10331a2672bd1fdcbe72f7ca60d1b6202c3783a6.zip |
Fix `--print` with `--ignore-no-formats` when url is `None` (#3000)
Authored by: flashdagger
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 3ee3ed7d2..355369c21 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2777,7 +2777,7 @@ class YoutubeDL(object): if info_dict.get('requested_formats') is not None: # For RTMP URLs, also include the playpath info_dict['urls'] = '\n'.join(f['url'] + f.get('play_path', '') for f in info_dict['requested_formats']) - elif 'url' in info_dict: + elif info_dict.get('url'): info_dict['urls'] = info_dict['url'] + info_dict.get('play_path', '') if (self.params.get('forcejson') |