Skip to content

Add -playlists-relative option#537

Closed
0chroma wants to merge 6 commits intosentriz:masterfrom
0chroma:master
Closed

Add -playlists-relative option#537
0chroma wants to merge 6 commits intosentriz:masterfrom
0chroma:master

Conversation

@0chroma
Copy link
Copy Markdown

@0chroma 0chroma commented Sep 7, 2024

Fixes #529

Improves portability between machines by optionally making file paths relative to the playlist

feedback welcome! it's my first time writing go

@sentriz
Copy link
Copy Markdown
Owner

sentriz commented Sep 7, 2024

hm I wonder do we need the config option at all? can we just allow relative paths? joining on the basedir if the playlist line doesn't look absolute with no leading slash

@0chroma
Copy link
Copy Markdown
Author

0chroma commented Sep 7, 2024

the option mostly determines if the playlist is written with absolute or relative paths, I modified the reader so it does exactly what you described regardless of config option

@0chroma
Copy link
Copy Markdown
Author

0chroma commented Sep 8, 2024

If you'd like I can remove the config check during writes from the PR, but I think there's a lot of situations where absolute paths would still make sense (ie having playlists and music on separate volumes)

@0chroma
Copy link
Copy Markdown
Author

0chroma commented Oct 16, 2024

heya, just checking in. Let me know if you'd like this merged in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request: better playlist portability

2 participants