Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use backslash instead of forward slash in playlist items #6

Closed
kingy444 opened this issue Jan 24, 2023 · 3 comments
Closed

Use backslash instead of forward slash in playlist items #6

kingy444 opened this issue Jan 24, 2023 · 3 comments

Comments

@kingy444
Copy link

kingy444 commented Jan 24, 2023

This tool works great but it is creating file paths as

C: / Users / %username% / Music
and not
C: \ Users \ %username% \ Music

Could you update the tool to use backslashes - reason being - I want to use the exported M3U with Emby but cannot as the M3U contents need to match identical to the library path - because the / and the \ dont line up the import fails

Justifying the change:

  • The \ character is how windows interprets a folder path natively (forward is linux)
  • An export from iTunes uses the \ too, so this would align the tool more with iTunes aswell
@Andrrison
Copy link

Andrrison commented Aug 22, 2024

I second this request. I'd like the option to include a command to change / to \ in the output files. I export my iTunes playlists for two use cases:

  1. Using in Poweramp on my Android devices - for which the current / works perfectly
  2. Using in Audio Station on my Synology Diskstation - this requires \ in the pathways, so I cannot achieve this yet.

Seem to recall the GUI version used to be able to do this - I have some old exported playlists in my Audio Station with \ . @ericdaugherty is there something in the Command Line version that can achieve this already? If not, could this feature be added?

Thanks

@ericdaugherty
Copy link
Owner

Release 1.6 adds the option 'pathSeparator' which allows you to specify whatever character or characters you want to use as the output file path separator.

ex:
-pathSeparator "**"
or
-pathSeparator "/"
or
-pathSeparator "\" (at least on unix you need to escape the backslash)

@Andrrison
Copy link

Andrrison commented Jan 23, 2025

I've downloaded 1.6.0 (Windows), but can't get this to work. Here's the code I'm running in Command Prompt:

itunesexport.exe -includeAll -library "H:\iTunes\iTunes Library.xml" -pathSeparator "\\" -output "C:\Users\morri\Music\iTunes\iTunes Library - Backup\Audio Station Playlists" 

Here's an example of a line from the output .m3u file, showing the pathway still with a forward slash, when my code requested a back slash:

H:/iTunes/iTunes Media/Music/Erasure/The Innocents/01 A Little Respect.m4a

Note I also tried this code (using "\" instead of "\\"):

itunesexport.exe -includeAll -library "H:\iTunes\iTunes Library.xml" -pathSeparator "\" -output "C:\Users\morri\Music\iTunes\iTunes Library - Backup\Audio Station Playlists"

Which generates this error:

Unable to parse command line parameters.
Unexpected paramter purchases

@ericdaugherty am I doing something wrong, or is this a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants