- Add Book.IsSpatial property and add it to search index - Read audio format of actual output files and store it in UserDefinedItem. Now works with MP3s. - Store last downloaded audio file version - Add IsSpatial, file version, and Audio Format to library exports and to template tags. Updated docs. - Add last downloaded audio file version and format info to the Last Downloaded tab - Migrated the DB - Update AAXClean with some bug fixes - Fixed error converting xHE-AAC audio files to mp3 when splitting by chapter (or trimming the audible branding from the beginning of the file) - Improve mp3 ID# tags support. Chapter titles are now preserved. - Add support for reading EC-3 and AC-4 audio format metadata
47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
#nullable enable
|
|
namespace LibationFileManager.Templates;
|
|
|
|
public class BookDto
|
|
{
|
|
public string? AudibleProductId { get; set; }
|
|
public string? Title { get; set; }
|
|
public string? Subtitle { get; set; }
|
|
public string? TitleWithSubtitle { get; set; }
|
|
public string? Locale { get; set; }
|
|
public int? YearPublished { get; set; }
|
|
|
|
public IEnumerable<ContributorDto>? Authors { get; set; }
|
|
public ContributorDto? FirstAuthor => Authors?.FirstOrDefault();
|
|
|
|
public IEnumerable<ContributorDto>? Narrators { get; set; }
|
|
public ContributorDto? FirstNarrator => Narrators?.FirstOrDefault();
|
|
|
|
public IEnumerable<SeriesDto>? Series { get; set; }
|
|
public SeriesDto? FirstSeries => Series?.FirstOrDefault();
|
|
|
|
public bool IsSeries => Series is not null;
|
|
public bool IsPodcastParent { get; set; }
|
|
public bool IsPodcast { get; set; }
|
|
|
|
public int? BitRate { get; set; }
|
|
public int? SampleRate { get; set; }
|
|
public int? Channels { get; set; }
|
|
public string? Codec { get; set; }
|
|
public DateTime FileDate { get; set; } = DateTime.Now;
|
|
public DateTime? DatePublished { get; set; }
|
|
public string? Language { get; set; }
|
|
public string? LibationVersion { get; set; }
|
|
public string? FileVersion { get; set; }
|
|
}
|
|
|
|
public class LibraryBookDto : BookDto
|
|
{
|
|
public DateTime? DateAdded { get; set; }
|
|
public string? Account { get; set; }
|
|
public string? AccountNickname { get; set; }
|
|
}
|