Skip to content

Commit

Permalink
cleanup: remove unnecessary namespacing
Browse files Browse the repository at this point in the history
  • Loading branch information
revam committed Nov 5, 2024
1 parent 751a12a commit f850154
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Shokofin/Utils/Ordering.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,27 +242,27 @@ public static int GetSeasonNumber(ShowInfo showInfo, SeasonInfo seasonInfo, Epis
if (string.IsNullOrEmpty(title))
return null;
// Interview
if (title.Contains("interview", System.StringComparison.OrdinalIgnoreCase))
if (title.Contains("interview", StringComparison.OrdinalIgnoreCase))
return ExtraType.Interview;
// Cinema/theatrical intro/outro
if (
(title.StartsWith("cinema ", System.StringComparison.OrdinalIgnoreCase) || title.StartsWith("theatrical ", System.StringComparison.OrdinalIgnoreCase)) &&
(title.Contains("intro", System.StringComparison.OrdinalIgnoreCase) || title.Contains("outro", System.StringComparison.OrdinalIgnoreCase)) ||
title.Contains("manners movie", System.StringComparison.OrdinalIgnoreCase)
(title.StartsWith("cinema ", StringComparison.OrdinalIgnoreCase) || title.StartsWith("theatrical ", StringComparison.OrdinalIgnoreCase)) &&
(title.Contains("intro", StringComparison.OrdinalIgnoreCase) || title.Contains("outro", StringComparison.OrdinalIgnoreCase)) ||
title.Contains("manners movie", StringComparison.OrdinalIgnoreCase)
)
return ExtraType.Clip;
// Behind the Scenes
if (title.Contains("behind the scenes", System.StringComparison.OrdinalIgnoreCase))
if (title.Contains("behind the scenes", StringComparison.OrdinalIgnoreCase))
return ExtraType.BehindTheScenes;
if (title.Contains("making of", System.StringComparison.OrdinalIgnoreCase))
if (title.Contains("making of", StringComparison.OrdinalIgnoreCase))
return ExtraType.BehindTheScenes;
if (title.Contains("music in", System.StringComparison.OrdinalIgnoreCase))
if (title.Contains("music in", StringComparison.OrdinalIgnoreCase))
return ExtraType.BehindTheScenes;
if (title.Contains("advance screening", System.StringComparison.OrdinalIgnoreCase))
if (title.Contains("advance screening", StringComparison.OrdinalIgnoreCase))
return ExtraType.BehindTheScenes;
if (title.Contains("premiere", System.StringComparison.OrdinalIgnoreCase))
if (title.Contains("premiere", StringComparison.OrdinalIgnoreCase))
return ExtraType.BehindTheScenes;
if (title.Contains("talk show", System.StringComparison.OrdinalIgnoreCase))
if (title.Contains("talk show", StringComparison.OrdinalIgnoreCase))
return ExtraType.Featurette;
return null;
}
Expand Down

0 comments on commit f850154

Please sign in to comment.