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

Use m4a for audio

This commit is contained in:
Maksym Pavlenko
2017-08-20 19:26:25 -07:00
parent a7a1700ef7
commit 1df1783217

View File

@@ -16,8 +16,8 @@ func makeEnclosure(feed *api.Feed, id string, lengthInBytes int64) (string, itun
ext := "mp4"
contentType := itunes.MP4
if feed.Format == api.AudioFormat {
ext = "mp3"
contentType = itunes.MP3
ext = "m4a"
contentType = itunes.M4A
}
url := fmt.Sprintf("http://podsync.net/download/%s/%s.%s", feed.HashId, id, ext)