Versions in this module Expand all Collapse all v0 v0.0.1 Jul 8, 2023 Changes in this version + const Aac + const AudioFile + const AudioFileGrok + const Author + const AuthorGrok + const Flac + const Genre + const GenreGrok + const M4a + const M4b + const Mp3 + const Mp4 + const Narrator + const NarratorGrok + const Ogg + const Opus + const ReleaseDate + const ReleaseDateGrok + const Series + const SeriesGrok + const SeriesPart + const SeriesPartGrok + const Title + const TitleGrok + func Bind(config Config, book Book) error + func Combine(config Config) error + func OutputFilePattern(book Book, pathPattern string) string + func OutputPathPattern(book Book, pathPattern string) (string, error) + func ParsePathTags(path, pathPattern string) (map[string]string, error) + func SplitSingleFile(config *Config) error + func TranscodeSourceFiles(config *Config) error + type Book struct + Author string + Chapters []*Chapter + Date *string + Description *string + Genre *string + Narrator *string + SortSlug *string + Title string + func (b *Book) CalcChapterTimes() + func (b *Book) ChapterByFile(config Config, useFileNames, useTagTitle bool) error + func (b *Book) ExtractChapters(config Config) error + func (b *Book) GenerateMetaTemplate(config Config) error + func (b *Book) GenerateStaticChapters(config Config, chapterLengthMin int) error + func (b *Book) ParseFromPattern(tags map[string]string) + func (b *Book) ParseToChapters(config Config) error + func (b *Book) WriteTags(filename string) error + type Chapter struct + EndMs int64 + LengthMs int64 + Number int + StartMs int64 + Title string + Tracks []TrackFile + func (c *Chapter) Compile() + func (c *Chapter) StampTimes(startTime int64) int64 + type Config struct + ChaptersFile *os.File + DescriptionFilename string + ExternalChapters bool + Jobs int + OutputFile string + OutputFileDest string + OutputFilePattern string + OutputPath string + OutputPathPattern string + PathPattern string + ScratchFilesPath string + SourceFilesPath string + TracksFile *os.File + VerboseTranscode bool + func ParseConfig(filename string) (Config, error) + func (c *Config) Cleanup() error + func (c *Config) New() error + func (c *Config) Parse() error + func (c *Config) SetOutputFilename(book Book) error + type TrackFile struct + File *os.File + LengthMs int64 + func (t *TrackFile) Parse(filename string) error