From ad0edc63291cec8e122912f4b5c40a52a205ecfb Mon Sep 17 00:00:00 2001 From: mfcar Date: Thu, 23 Feb 2023 00:33:04 +0000 Subject: [PATCH] Fix merge conflicts and add language information on the feed rss --- client/components/modals/podcast/NewModal.vue | 12 +++++------- server/objects/Feed.js | 2 ++ server/objects/FeedMeta.js | 7 +++++-- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/client/components/modals/podcast/NewModal.vue b/client/components/modals/podcast/NewModal.vue index 17c65b53..d9e3e461 100644 --- a/client/components/modals/podcast/NewModal.vue +++ b/client/components/modals/podcast/NewModal.vue @@ -29,21 +29,19 @@
-
+
+ +
+
-
+
-
-
- -
-
diff --git a/server/objects/Feed.js b/server/objects/Feed.js index c4aa3b87..e557c30a 100644 --- a/server/objects/Feed.js +++ b/server/objects/Feed.js @@ -107,6 +107,7 @@ class Feed { this.meta.link = `${serverAddress}/item/${libraryItem.id}` this.meta.explicit = !!mediaMetadata.explicit this.meta.type = mediaMetadata.type + this.meta.language = mediaMetadata.language this.episodes = [] if (isPodcast) { // PODCAST EPISODES @@ -144,6 +145,7 @@ class Feed { this.meta.imageUrl = media.coverPath ? `${this.serverAddress}/feed/${this.slug}/cover` : `${this.serverAddress}/Logo.png` this.meta.explicit = !!mediaMetadata.explicit this.meta.type = mediaMetadata.type + this.meta.language = mediaMetadata.language this.episodes = [] if (isPodcast) { // PODCAST EPISODES diff --git a/server/objects/FeedMeta.js b/server/objects/FeedMeta.js index 94ce73e5..db414159 100644 --- a/server/objects/FeedMeta.js +++ b/server/objects/FeedMeta.js @@ -8,6 +8,7 @@ class FeedMeta { this.link = null this.explicit = null this.type = null + this.language = null if (meta) { this.construct(meta) @@ -23,6 +24,7 @@ class FeedMeta { this.link = meta.link this.explicit = meta.explicit this.type = meta.type + this.language = meta.language } toJSON() { @@ -34,7 +36,8 @@ class FeedMeta { feedUrl: this.feedUrl, link: this.link, explicit: this.explicit, - type: this.type + type: this.type, + language: this.language } } @@ -46,13 +49,13 @@ class FeedMeta { feed_url: this.feedUrl, site_url: this.link, image_url: this.imageUrl, - language: 'en', custom_namespaces: { 'itunes': 'http://www.itunes.com/dtds/podcast-1.0.dtd', 'psc': 'http://podlove.org/simple-chapters', 'podcast': 'https://podcastindex.org/namespace/1.0' }, custom_elements: [ + { 'language': this.language || 'en' }, { 'author': this.author || 'advplyr' }, { 'itunes:author': this.author || 'advplyr' }, { 'itunes:summary': this.description || '' },