Skip to content

Proper relative paths support in playlists #232

@fsobolev

Description

@fsobolev

The problem

Currently it's very problematic to work with playlists containing relative paths. PlaylistIO.FilePaths always gives absolute paths, no matter what is written in a file. It's possible to write relative path to a playlist, but let's say I want to remove a track from playlist:

var paths = playlist.FilePaths;
paths.Remove(index);
playlist.FilePaths = paths;

This will overwrite all relative paths with absolute ones.

Would it be possible to get a list of paths that are exactly the same that are written in playlist file (so if it's relative, then get relative path) or maybe provide a way to add/remove data in a playlist without overwriting all the data?

Environment

  • ATL version (or git revision) that exhibits the issue: 5.8.0

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions