fix(core): waive untagged audio on main roots (#282)
This commit was merged in pull request #282.
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user