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() { folderPath() {
if (!this.libraryFolderPath) return '' if (!this.libraryFolderPath) return ''
return `${this.libraryFolderPath}\\${this.$sanitizeFilename(this.title)}` return `${this.libraryFolderPath}/${this.$sanitizeFilename(this.title)}`
}, },
detailsWidth() { detailsWidth() {
return this.width - 85 return this.width - 85

View File

@ -97,7 +97,7 @@ export default {
}, },
methods: { methods: {
toFeedMetadata(feed) { toFeedMetadata(feed) {
var metadata = feed.metadata const metadata = feed.metadata
return { return {
title: metadata.title, title: metadata.title,
author: metadata.author, author: metadata.author,
@ -122,9 +122,9 @@ export default {
}, },
async submit() { async submit() {
this.processing = true this.processing = true
var newFeedPayloads = this.feedMetadata.map((metadata) => { const newFeedPayloads = this.feedMetadata.map((metadata) => {
return { return {
path: `${this.selectedFolderPath}\\${this.$sanitizeFilename(metadata.title)}`, path: `${this.selectedFolderPath}/${this.$sanitizeFilename(metadata.title)}`,
folderId: this.selectedFolderId, folderId: this.selectedFolderId,
libraryId: this.currentLibrary.id, libraryId: this.currentLibrary.id,
media: { media: {