Fix breaking timestamp for Dan Carlin podcast

pull/24/head
Akhil Gupta 4 years ago committed by GitHub
parent 68dd9179eb
commit fd6ce9cabc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -143,6 +143,12 @@ func AddPodcastItems(podcast *db.Podcast) error {
if (pubDate == time.Time{}) {
pubDate, _ = time.Parse(time.RFC1123, obj.PubDate)
}
if (pubDate == time.Time{}) {
// RFC1123 = "Mon, 02 Jan 2006 15:04:05 MST"
modifiedRFC1123 := "Mon, 2 Jan 2006 15:04:05 MST"
pubDate, _ = time.Parse(modifiedRFC1123, obj.PubDate)
}
var downloadStatus db.DownloadStatus
if i < limit {
downloadStatus = db.NotDownloaded

Loading…
Cancel
Save