diff --git a/yt_dlp/extractor/facebook.py b/yt_dlp/extractor/facebook.py index 1fd068ce19e3..0d36d97e683e 100644 --- a/yt_dlp/extractor/facebook.py +++ b/yt_dlp/extractor/facebook.py @@ -427,8 +427,8 @@ def extract_metadata(webpage): is_video_broadcast = get_first(snippet, 'is_video_broadcast', expected_type=bool) automatic_captions = {} subtitles = {} - if isinstance(captions, str): - subtitles[locale] = [{'ext': determine_ext(captions, default_ext='srt'), 'url': captions}] + if url_or_none(captions): # snippet only had 'captions_url' + subtitles[locale] = [{'url': captions}] elif isinstance(captions, list): if len(captions) > 1: captions = sorted(captions, key=lambda c: (c['locale'] != locale, c['locale']))