Captions: Add ability to use Innertube's transcripts API (#4001)

This commit is contained in:
Samantaz Fox
2023-09-18 23:31:56 +02:00
9 changed files with 289 additions and 132 deletions

View File

@@ -127,6 +127,9 @@ class Config
# Pool size for HTTP requests to youtube.com and ytimg.com (each domain has a separate pool of `pool_size`)
property pool_size : Int32 = 100
# Use Innertube's transcripts API instead of timedtext for closed captions
property use_innertube_for_captions : Bool = false
# Saved cookies in "name1=value1; name2=value2..." format
@[YAML::Field(converter: Preferences::StringToCookies)]
property cookies : HTTP::Cookies = HTTP::Cookies.new