[Bug]: When adding podcasts using OPML it will append backslash (\) to the path rather than forward slash causing directory issues on *nix #877

Closed
opened 2026-04-24 23:24:54 +02:00 by adam · 3 comments
Owner

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.
Screenshot 2023-01-09 193611

image showing modal with backslash in directory.
Screenshot 2023-01-09 193736

Steps to reproduce the issue

  1. Import OPML podcasts
  2. Notice in modal that directories include backslashes
  3. View errant directories after import

Audiobookshelf version

v2.2.12

How are you running audiobookshelf?

Docker

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. ![Screenshot 2023-01-09 193611](https://user-images.githubusercontent.com/6827863/211456418-97cae4d5-7e7c-4f57-9265-4b7130161da0.png) image showing modal with backslash in directory. ![Screenshot 2023-01-09 193736](https://user-images.githubusercontent.com/6827863/211456530-6e64093f-28ca-44a8-a105-d3ac001efd68.png) ### Steps to reproduce the issue 1. Import OPML podcasts 2. Notice in modal that directories include backslashes 3. View errant directories after import ### Audiobookshelf version v2.2.12 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:24:54 +02:00
adam closed this issue 2026-04-24 23:24:54 +02:00
Author
Owner

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

@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.
Author
Owner

@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

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

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

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#877