diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-20 04:27:36 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-21 13:27:44 +0530 |
commit | 6970b6005e9c07c427d368bbe3f71f85878f325e (patch) | |
tree | 3c5090cb5729f896b28c0537bf94b6686a31ce38 /yt_dlp/YoutubeDL.py | |
parent | fc5fa964c7ca1ee548ee3b8f1e559aac24d3d45f (diff) | |
download | hypervideo-pre-6970b6005e9c07c427d368bbe3f71f85878f325e.tar.lz hypervideo-pre-6970b6005e9c07c427d368bbe3f71f85878f325e.tar.xz hypervideo-pre-6970b6005e9c07c427d368bbe3f71f85878f325e.zip |
[cleanup] Minor fixes
Closes #2334
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 11708774e..baf54cd2e 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -2682,7 +2682,7 @@ class YoutubeDL(object): def _forceprint(self, tmpl, info_dict): mobj = re.match(r'\w+(=?)$', tmpl) if mobj and mobj.group(1): - tmpl = f'{tmpl[:-1]} = %({tmpl[:-1]})s' + tmpl = f'{tmpl[:-1]} = %({tmpl[:-1]})r' elif mobj: tmpl = '%({})s'.format(tmpl) @@ -3486,7 +3486,7 @@ class YoutubeDL(object): return None return render_table( self._list_format_headers('ID', 'Width', 'Height', 'URL'), - [[t['id'], t.get('width', 'unknown'), t.get('height', 'unknown'), t['url']] for t in thumbnails]) + [[t.get('id'), t.get('width', 'unknown'), t.get('height', 'unknown'), t['url']] for t in thumbnails]) def render_subtitles_table(self, video_id, subtitles): def _row(lang, formats): |