Fix:OPML upload path separator #1476

This commit is contained in:
advplyr 2023-02-04 13:34:50 -06:00
parent 3383ec2046
commit debf0f495d
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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: {