Exemplo n.º 1
0
        public string FormateVolumeFolder(Volume volume)
        {
            var name = string.IsNullOrWhiteSpace(volume.Name) ? AppConfig.VolumePrefix : volume.Name;

            name = DirectoryHelpers.RemoveInvalidCharsFromName(name);
            return(volume.Number.ToString(CultureInfo.InvariantCulture).PadLeft(3, '0') + " " + name);
        }
Exemplo n.º 2
0
        public string FormateChapterFolder(Chapter chapter)
        {
            var name = string.IsNullOrWhiteSpace(chapter.Name) ? AppConfig.ChapterPrefix : chapter.Name;

            name = DirectoryHelpers.RemoveInvalidCharsFromName(name);
            return(chapter.Number.ToString(CultureInfo.InvariantCulture).PadLeft(chapter.Number % 1 == 0 ? 4 : 6, '0') + " " + name);
        }