Example #1
0
 public Part(Book book, AaxFileItem fi, int part = 0)
 {
     Book        = book;
     AaxFileItem = fi;
     PartNumber  = part;
     Duration    = fi.Duration;
 }
        private TagAndFileNamingHelper(INamingSettingsEx settings, Book book, Track track)
        {
            _settings = settings;
            _book     = book;
            _track    = track;
            if (settings is ISettings s)
            {
                _convFormat = s.ConvFormat;
                _convMode   = s.ConvMode;
            }

            var part = book.Parts.Where(p => p.Tracks?.Contains(track) ?? false).SingleOrDefault();

            if (part is null)
            {
                return;
            }

            _aaxFileItem = part.AaxFileItem;

            _numbers = new Numbers(book, track, part);
        }
 private TagAndFileNamingHelper(AaxFileItem aaxFileItem) => _aaxFileItem = aaxFileItem;
 public static bool ReadMetaData(AaxFileItem aaxFileItem)
 {
     return(new TagAndFileNamingHelper(aaxFileItem).readMetaData());
 }
 private string getGenre(AaxFileItem afi) => GetGenre(Settings, afi);
 public static string GetGenre(INamingSettings settings, AaxFileItem afi) =>
 (settings.GenreNaming == EGeneralNaming.source ? afi.Genre : settings.GenreName) ?? GENRE;
Example #7
0
 public BookPart(AaxFileItem fi, int part = 0)
 {
     AaxFileItem = fi;
     PartNumber  = part;
 }