コード例 #1
0
 public static void AddToResource(this BasicNamingConfig basicNamingConfig, NamingConfigResource resource)
 {
     resource.IncludeSeriesTitle  = basicNamingConfig.IncludeSeriesTitle;
     resource.IncludeEpisodeTitle = basicNamingConfig.IncludeEpisodeTitle;
     resource.IncludeQuality      = basicNamingConfig.IncludeQuality;
     resource.ReplaceSpaces       = basicNamingConfig.ReplaceSpaces;
     resource.Separator           = basicNamingConfig.Separator;
     resource.NumberStyle         = basicNamingConfig.NumberStyle;
 }
コード例 #2
0
        public static NamingConfig ToModel(this NamingConfigResource resource)
        {
            return(new NamingConfig
            {
                Id = resource.Id,

                RenameMovies = resource.RenameEpisodes,
                ReplaceIllegalCharacters = resource.ReplaceIllegalCharacters,
                ColonReplacementFormat = resource.ColonReplacementFormat,
                StandardMovieFormat = resource.StandardMovieFormat,
                MovieFolderFormat = resource.MovieFolderFormat
            });
        }
コード例 #3
0
ファイル: NamingConfigResource.cs プロジェクト: Gadarr/Gadarr
        public static NamingConfig ToModel(this NamingConfigResource resource)
        {
            return(new NamingConfig
            {
                Id = resource.Id,

                RenameEpisodes = resource.RenameEpisodes,
                ReplaceIllegalCharacters = resource.ReplaceIllegalCharacters,
                MultiEpisodeStyle = resource.MultiEpisodeStyle,
                StandardEpisodeFormat = resource.StandardEpisodeFormat,
                DailyEpisodeFormat = resource.DailyEpisodeFormat,
                AnimeEpisodeFormat = resource.AnimeEpisodeFormat,
                SeriesFolderFormat = resource.SeriesFolderFormat,
                SeasonFolderFormat = resource.SeasonFolderFormat
            });
        }
コード例 #4
0
 public static void AddToResource(this BasicNamingConfig basicNamingConfig, NamingConfigResource resource)
 {
     resource.IncludeSeriesTitle = basicNamingConfig.IncludeSeriesTitle;
     resource.IncludeEpisodeTitle = basicNamingConfig.IncludeEpisodeTitle;
     resource.IncludeQuality = basicNamingConfig.IncludeQuality;
     resource.ReplaceSpaces = basicNamingConfig.ReplaceSpaces;
     resource.Separator = basicNamingConfig.Separator;
     resource.NumberStyle = basicNamingConfig.NumberStyle;
 }