Add PodcastEpisodeStatusError
This commit is contained in:
@@ -327,6 +327,7 @@ const (
|
||||
PodcastEpisodeStatusSkipped PodcastEpisodeStatus = "skipped"
|
||||
PodcastEpisodeStatusDeleted PodcastEpisodeStatus = "deleted"
|
||||
PodcastEpisodeStatusCompleted PodcastEpisodeStatus = "completed"
|
||||
PodcastEpisodeStatusError PodcastEpisodeStatus = "error"
|
||||
)
|
||||
|
||||
type PodcastEpisode struct {
|
||||
|
||||
@@ -458,7 +458,7 @@ func (p *Podcasts) doPodcastDownload(podcastEpisode *db.PodcastEpisode, file *os
|
||||
podcastTags, err := tags.New(podcastPath)
|
||||
if err != nil {
|
||||
log.Printf("error parsing podcast audio: %e", err)
|
||||
podcastEpisode.Status = "error"
|
||||
podcastEpisode.Status = db.PodcastEpisodeStatusError
|
||||
p.DB.Save(podcastEpisode)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user