From a15324cb971a08b76ea652b52c01f106543ef136 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Tue, 24 Sep 2024 09:54:42 -0700 Subject: [PATCH] Converted podcast duration to seconds --- server/objects/FeedEpisode.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/objects/FeedEpisode.js b/server/objects/FeedEpisode.js index 6d9f36a08..593ca256e 100644 --- a/server/objects/FeedEpisode.js +++ b/server/objects/FeedEpisode.js @@ -162,11 +162,9 @@ class FeedEpisode { enclosure: this.enclosure, custom_elements: [ { 'itunes:author': this.author }, - { 'itunes:duration': secondsToTimestamp(this.duration) }, + { 'itunes:duration': Math.round(this.duration) }, { 'itunes:summary': this.description || '' }, - { - 'itunes:explicit': !!this.explicit - }, + { 'itunes:explicit': !!this.explicit }, { 'itunes:episodeType': this.episodeType }, { 'itunes:season': this.season }, { 'itunes:episode': this.episode }