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!

@sentriz sentriz force-pushed the master branch 5 times, most recently from 7decea6 to 971d22d Compare November 11, 2025 07:01
@sentriz sentriz added the next label Feb 5, 2026
@sentriz sentriz closed this in 798e7f8 Mar 9, 2026
yaemiku pushed a commit to yaemiku/gonic that referenced this pull request Apr 26, 2026
write playlist item paths relative to the playlist file directory, an resolve relative paths back to absolute on read

closes sentriz#537
closes sentriz#529
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