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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user