1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Fix extension for audio files #41

This commit is contained in:
Maksym Pavlenko
2019-11-14 23:33:46 -08:00
parent 780f9440a4
commit 22e7165da1

View File

@@ -212,8 +212,8 @@ func (u *Updater) makeEnclosure(feed *model.Feed, episode *model.Episode, cfg *c
ext := "mp4"
contentType := itunes.MP4
if feed.Format == model.FormatAudio {
ext = "m4a"
contentType = itunes.M4A
ext = "mp3"
contentType = itunes.MP3
}
url := fmt.Sprintf("%s/%s/%s.%s", u.config.Server.Hostname, cfg.ID, episode.ID, ext)