feat(gonic): use wrtag/normtag for nag normalisation

This commit is contained in:
sentriz
2025-09-29 16:02:57 +01:00
parent e3db819d8f
commit aba758f2ba
12 changed files with 212 additions and 366 deletions

No files matched your search

+3 -3
View File
@@ -536,14 +536,14 @@ func (p *Podcasts) doPodcastDownload(podcast *db.Podcast, podcastEpisode *db.Pod
return fmt.Errorf("writing podcast episode: %w", err)
}
podcastTags, err := p.tagReader.Read(podcastEpisode.AbsPath())
podcastProps, _, err := p.tagReader.Read(podcastEpisode.AbsPath())
if err != nil {
return fmt.Errorf("read podcast tags: %w", err)
}
podcastEpisode.Status = db.PodcastEpisodeStatusCompleted
podcastEpisode.Bitrate = podcastTags.Bitrate()
podcastEpisode.Length = podcastTags.Length()
podcastEpisode.Bitrate = int(podcastProps.Bitrate)
podcastEpisode.Length = int(podcastProps.Length.Seconds())
stat, _ := file.Stat()
podcastEpisode.Size = int(stat.Size())