Skip to content

Commit

Permalink
more tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Feb 12, 2025
1 parent 9bf85ae commit a9b1204
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions music_assistant/providers/filesystem_local/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,10 +734,10 @@ async def _parse_playlist_line(self, line: str, playlist_path: str) -> Track | N
# - relative to our base path
for filename in (
line,
os.path.join(playlist_path, line),
os.path.join(playlist_path, line.removeprefix("/")),
# also try with url decoding the line as e.g. VLC seems to encode some characters
urllib.parse.unquote(line),
os.path.join(playlist_path, urllib.parse.unquote(line)),
os.path.join(playlist_path, urllib.parse.unquote(line.removeprefix("/"))),
):
with contextlib.suppress(FileNotFoundError):
file_item = await self.resolve(filename)
Expand Down

0 comments on commit a9b1204

Please sign in to comment.