/// <summary>Creates a video's display name according to the plugin's selected configuration.</summary> /// <param name="video">The video.</param> /// <returns>The video's created display name.</returns> public static string CreateVideoDisplayName(Api.Video video) { return(Plugin.Instance?.Configuration.VideoDisplayName switch { VideoDisplayName.CodeTitle => video.Code + " " + video.Title, VideoDisplayName.Title => video.Title, _ => throw new System.Exception("Impossible to reach.") });
private static List <PersonInfo> CreateActressList(Api.Video video) { if (Plugin.Instance?.Configuration.EnableActresses == false) { return(new List <PersonInfo>()); } return((from actress in video.Actresses select new PersonInfo { Name = NormalizeActressName(actress), Type = PersonType.Actor, }).ToList()); }