From 8e8e95a4903864bfc643b5857492c531bebad671 Mon Sep 17 00:00:00 2001 From: Sacha Arnoud Date: Sat, 25 Sep 2021 22:24:26 +0000 Subject: [PATCH] document "protocol" field --- youtube_dl/extractor/common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index e45c67f94..fd1fcda67 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -250,7 +250,10 @@ class InfoExtractor(object): preference, each element is a dictionary with the "ext" entry and one of: * "data": The subtitles file contents - * "url": A URL pointing to the subtitles file + * "url": A URL pointing to the subtitles resource + With "url", a "protocol" entry (as for "formats" above) + may be provided to indicate how the URL should be + processed; by default it is a file downloaded by HTTP(S) "ext" will be calculated from URL if missing automatic_captions: Like 'subtitles', used by the YoutubeIE for automatically generated captions