From debf0f495d873e6b4b433f20892b98d338ff7c6c Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 4 Feb 2023 13:34:50 -0600 Subject: [PATCH] Fix:OPML upload path separator #1476 --- client/components/cards/PodcastFeedSummaryCard.vue | 2 +- client/components/modals/podcast/OpmlFeedsModal.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/components/cards/PodcastFeedSummaryCard.vue b/client/components/cards/PodcastFeedSummaryCard.vue index 131d6d9a..53b2e622 100644 --- a/client/components/cards/PodcastFeedSummaryCard.vue +++ b/client/components/cards/PodcastFeedSummaryCard.vue @@ -54,7 +54,7 @@ export default { }, folderPath() { if (!this.libraryFolderPath) return '' - return `${this.libraryFolderPath}\\${this.$sanitizeFilename(this.title)}` + return `${this.libraryFolderPath}/${this.$sanitizeFilename(this.title)}` }, detailsWidth() { return this.width - 85 diff --git a/client/components/modals/podcast/OpmlFeedsModal.vue b/client/components/modals/podcast/OpmlFeedsModal.vue index 30916ad3..ede76ec5 100644 --- a/client/components/modals/podcast/OpmlFeedsModal.vue +++ b/client/components/modals/podcast/OpmlFeedsModal.vue @@ -97,7 +97,7 @@ export default { }, methods: { toFeedMetadata(feed) { - var metadata = feed.metadata + const metadata = feed.metadata return { title: metadata.title, author: metadata.author, @@ -122,9 +122,9 @@ export default { }, async submit() { this.processing = true - var newFeedPayloads = this.feedMetadata.map((metadata) => { + const newFeedPayloads = this.feedMetadata.map((metadata) => { return { - path: `${this.selectedFolderPath}\\${this.$sanitizeFilename(metadata.title)}`, + path: `${this.selectedFolderPath}/${this.$sanitizeFilename(metadata.title)}`, folderId: this.selectedFolderId, libraryId: this.currentLibrary.id, media: {