fix(core): waive untagged audio on main roots (#282)
ci / web (push) Successful in 42s
e2e / e2e (push) Successful in 2m6s
ci / rust (push) Successful in 2m50s
ci / image (push) Successful in 3m23s

This commit was merged in pull request #282.
This commit is contained in:
2026-11-15 13:22:29 +00:00
parent 5a18facc4f
commit 9adbca3acd
9 changed files with 69 additions and 29 deletions
+1 -2
View File
@@ -243,8 +243,7 @@ async fn probe_subtitles(state: &AppState) -> SubtitleHealth {
// quiet rather than failing on data the operator has not entered yet.
let enabled = settings
.as_ref()
.map(|settings| settings.providers_enabled.as_slice())
.unwrap_or_default();
.map_or_default(|settings| settings.providers_enabled.as_slice());
let engine = settings
.as_ref()
.and_then(|settings| settings.translation_engine.as_deref());
+1
View File
@@ -947,6 +947,7 @@ fn rule_name(rule: &Rule) -> String {
Rule::RequiredAudio => "required_audio".into(),
Rule::DubBlacklist(_) => "dub_blacklist".into(),
Rule::PortugueseUnverified => "portuguese_unverified".into(),
Rule::AudioLanguageUntagged => "audio_language_untagged".into(),
Rule::DolbyVisionProfile(_) => "dolby_vision_profile".into(),
Rule::Resolution(_) => "resolution".into(),
Rule::Source(_) => "source".into(),
+1 -4
View File
@@ -641,10 +641,7 @@ async fn embedded_tracks_of(
.fetch_optional(pool(state)?)
.await?
.flatten();
Ok(probed
.as_deref()
.map(extractable_tracks)
.unwrap_or_default())
Ok(probed.as_deref().map_or_default(extractable_tracks))
}
/// The `sub_tracks` array of a `probed` blob, filtered to what §15 allows an