@@ -55,7 +55,14 @@ public class ProcessingService : ReactiveObject
5555 public const int QueuedTabIndex = 0 ;
5656 public const int CompletedTabIndex = 1 ;
5757
58- private static HashSet < string > subtitleTokens = new HashSet < string > { "cc" , "forced" , "foreign" , "sdh" , "hi" , "default" } ;
58+ private const string SubtitleTokenCC = "cc" ;
59+ private const string SubtitleTokenForced = "forced" ;
60+ private const string SubtitleTokenForeign = "foreign" ;
61+ private const string SubtitleTokenSDH = "sdh" ;
62+ private const string SubtitleTokenHI = "hi" ;
63+ private const string SubtitleTokenDefault = "default" ;
64+
65+ private static HashSet < string > subtitleTokens = new HashSet < string > ( StringComparer . OrdinalIgnoreCase ) { SubtitleTokenCC , SubtitleTokenForced , SubtitleTokenForeign , SubtitleTokenSDH , SubtitleTokenHI , SubtitleTokenDefault } ;
5966
6067 private const double StopWarningThresholdMinutes = 5 ;
6168
@@ -3723,7 +3730,7 @@ public static List<FileSubtitle> FindSubtitleFiles(
37233730 }
37243731 else if ( subtitleTokens . Contains ( token ) )
37253732 {
3726- name = token ;
3733+ name = ConvertSubtitleTokenToName ( token ) ;
37273734 }
37283735 }
37293736
@@ -3753,6 +3760,27 @@ public static List<FileSubtitle> FindSubtitleFiles(
37533760 return result ;
37543761 }
37553762
3763+ private static string ConvertSubtitleTokenToName ( string token )
3764+ {
3765+ switch ( token )
3766+ {
3767+ case SubtitleTokenForced :
3768+ return "Forced" ;
3769+ case SubtitleTokenForeign :
3770+ return "Foreign" ;
3771+ case SubtitleTokenDefault :
3772+ return "Default" ;
3773+ case SubtitleTokenCC :
3774+ return "CC" ;
3775+ case SubtitleTokenSDH :
3776+ return "SDH" ;
3777+ case SubtitleTokenHI :
3778+ return "HI" ;
3779+ default :
3780+ return token ;
3781+ }
3782+ }
3783+
37563784 /// <summary>
37573785 /// Gets the subtitle name according to the picker.
37583786 /// </summary>
0 commit comments