mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-30 23:40:40 +02:00
[Bug]: When adding podcasts using OPML it will append backslash (\) to the path rather than forward slash causing directory issues on *nix #877
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dmurphy22 on GitHub (Jan 10, 2023).
Describe the issue
When adding podcasts using OPML import it will create directories for those podcasts using a backslash in the directory string. This is a problem on *nix as it does not create the correct directory structure.
Image shown directories are being created one directory above the intended one with

podcasts\appended to the folder name.image showing modal with backslash in directory.

Steps to reproduce the issue
Audiobookshelf version
v2.2.12
How are you running audiobookshelf?
Docker
@Brandelan commented on GitHub (Jan 13, 2023):
Had this issue as well with the same setup on my Synology NAS. I was unable to view the file structure as it seems like it was downloading the files local to the docker image, and were inaccessible to me. Since the files were inaccessible easily, it required resetting the docker image, deleting all the podcasts and re-adding the RSS feeds manually to get the files to the proper directory.
@RichyHBM commented on GitHub (Jan 25, 2023):
Can confirm I am seeing this also using the docker image on a ubuntu host (though I imagine this happend based on the docker image being linux based regardless of the host)
From what I can see the issue seems to come from https://github.com/advplyr/audiobookshelf/blob/946e4f39cc9a8ada7d467e8bca8751330b7588ba/client/components/modals/podcast/OpmlFeedsModal.vue#L127 being hardcoded to use windows style separator, ideally this should be set by the server using something like https://nodejs.org/api/path.html#pathsep, I'm not too versed with nextjs to confidently submit a PR but maybe this info can help?
As it stands OPML import doesnt seem to work on any linux platform hosting AudioBookShelf, this includes the docker image
@advplyr commented on GitHub (Feb 11, 2023):
I didn't see this issue earlier and created a dupe #1476
This is fixed for the next release already so we'll keep #1476 as the main thread.