forked from kenzuya/unshackle
feat(tracks)!: match a language tag to the variant it means
A tag with a region (en-US, es-419) matches only that variant and reports a miss instead of taking another region. A bare tag takes the variant it means (pt -> pt-BR, es -> es-ES) and falls back to any variant only when that one is missing. `orig` prefers the title's own tag, `-sl orig` resolves, forced and SDH subtitles are picked from their own pools, and the track name no longer strips the region from the cached language. BREAKING CHANGE: -l es-419 no longer selects es-ES, and language_priority, language_tags and muxing.default_language treat a regional tag as exact.
This commit is contained in:
@@ -909,7 +909,7 @@ async def download(request: web.Request) -> web.Response:
|
||||
description: Languages wanted for forced subtitles, implies forced_subs (a '-' prefix excludes) (default - [])
|
||||
exact_lang:
|
||||
type: boolean
|
||||
description: Use exact language matching (no variants) (default - false)
|
||||
description: A language tag without a region never falls back to another variant; a tag with a region is always exact (default - false)
|
||||
sub_format:
|
||||
type: string
|
||||
description: Output subtitle format such as SRT or VTT, or "original" to keep the source format (default - None)
|
||||
|
||||
Reference in New Issue
Block a user