Skip to content

Commit a9b1204

Browse files
committed
more tweaks
1 parent 9bf85ae commit a9b1204

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

music_assistant/providers/filesystem_local/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,10 +734,10 @@ async def _parse_playlist_line(self, line: str, playlist_path: str) -> Track | N
734734
# - relative to our base path
735735
for filename in (
736736
line,
737-
os.path.join(playlist_path, line),
737+
os.path.join(playlist_path, line.removeprefix("/")),
738738
# also try with url decoding the line as e.g. VLC seems to encode some characters
739739
urllib.parse.unquote(line),
740-
os.path.join(playlist_path, urllib.parse.unquote(line)),
740+
os.path.join(playlist_path, urllib.parse.unquote(line.removeprefix("/"))),
741741
):
742742
with contextlib.suppress(FileNotFoundError):
743743
file_item = await self.resolve(filename)

0 commit comments

Comments
 (0)