Skip to content

Commit

Permalink
Flag CC title as HearingImpaired not Commentary
Browse files Browse the repository at this point in the history
  • Loading branch information
ptr727 committed Apr 2, 2023
1 parent 9f38815 commit 8c73b57
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions PlexCleaner/TrackInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ internal TrackInfo(MkvToolJsonSchema.Track trackJson)
var lookupLanguage = PlexCleaner.Language.GetIso639Tag(LanguageIetf, true);
if (string.IsNullOrEmpty(lookupLanguage))
{
// TODO: Using CultureInfo is not a reliable lookup tool, e.g. cmn-Hant !-> chi
// TODO: Using CultureInfo is not a reliable lookup tool, e.g.
// "cmn-Hant" !-> "chi"
// "yue-Hant"!-> "chi"
// "no-NO"!-> "nor"
Log.Logger.Warning("MkvToolJsonSchema : Failed to lookup ISO639 Language from IETF LanguageIetf : {LanguageIetf} !-> {Language}", LanguageIetf, Language);
}
// Compare lookup language Language
Expand Down Expand Up @@ -396,8 +399,8 @@ public static IEnumerable<FlagsType> GetFlags()
private static readonly ValueTuple<string, FlagsType>[] TitleFlags =
{
new ("SDH", FlagsType.HearingImpaired),
new ("CC", FlagsType.HearingImpaired),
new ("Commentary", FlagsType.Commentary),
new ("CC", FlagsType.Commentary),
new ("Forced", FlagsType.Forced)
};
}

0 comments on commit 8c73b57

Please sign in to comment.