[extractor/MicrosoftEmbed] Add extractor (#5082)

Closes #2638
Authored by: DoubleCouponDay
This commit is contained in:
sam
2022-10-04 02:52:30 +13:00
committed by GitHub
parent f48ab881f6
commit 177662e0f2
3 changed files with 72 additions and 1 deletions

View File

@@ -3640,7 +3640,7 @@ class YoutubeDL:
return None
return render_table(
self._list_format_headers('ID', 'Width', 'Height', 'URL'),
[[t.get('id'), t.get('width', 'unknown'), t.get('height', 'unknown'), t['url']] for t in thumbnails])
[[t.get('id'), t.get('width') or 'unknown', t.get('height') or 'unknown', t['url']] for t in thumbnails])
def render_subtitles_table(self, video_id, subtitles):
def _row(lang, formats):