V1.1.15: relative paths playlists supported?
See original GitHub issueHi This issue is not specific since v1.1.15. It is in from the beginning, but didn’t have time to look into them earlier.
In my local collection I have several basic playlists. only the tracks, no paths. These playlists are located in the same folder as the tracks.
MA logs this error when parsing these playlists:
Logger: music_assistant.mass.music.file
Source: /usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/providers/filesystem.py:324
First occurred: 14:48:38 (10 occurrences)
Last logged: 15:02:21
Error while parsing playlist /media/MP3_normalized/Various/Hit History 1955-1985/63.m3u
Error while parsing playlist /media/MP3_normalized/Albums/Children Of Bodom/(2005) - Are You Dead Yet/Children Of Bodom - Are You Dead Yet.m3u
Error while parsing playlist /media/MP3_normalized/Albums/Guns N Roses/Greatest Hits/Greatest Hits.m3u
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/providers/filesystem.py", line 319, in get_playlist_tracks
if track := await self._parse_track_from_uri(line):
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/providers/filesystem.py", line 785, in _parse_track_from_uri
return await self.get_track(uri)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/providers/filesystem.py", line 269, in get_track
itempath = await self.get_filepath(MediaType.TRACK, prov_track_id)
File "/usr/local/lib/python3.9/site-packages/music_assistant/controllers/music/providers/filesystem.py", line 834, in get_filepath
for db_row in await self.mass.database.get_rows_from_query(query):
File "/usr/local/lib/python3.9/site-packages/music_assistant/helpers/database.py", line 104, in get_rows_from_query
return await _db.fetch_all(query, params)
File "/usr/local/lib/python3.9/site-packages/databases/core.py", line 149, in fetch_all
return await connection.fetch_all(query, values)
File "/usr/local/lib/python3.9/site-packages/databases/core.py", line 271, in fetch_all
return await self._connection.fetch_all(built_query)
File "/usr/local/lib/python3.9/site-packages/databases/backends/sqlite.py", line 93, in fetch_all
async with self._connection.execute(query_str, args) as cursor:
File "/usr/local/lib/python3.9/site-packages/aiosqlite/context.py", line 41, in __aenter__
self._obj = await self._coro
File "/usr/local/lib/python3.9/site-packages/aiosqlite/core.py", line 184, in execute
cursor = await self._execute(self._conn.execute, sql, parameters)
File "/usr/local/lib/python3.9/site-packages/aiosqlite/core.py", line 129, in _execute
return await future
File "/usr/local/lib/python3.9/site-packages/aiosqlite/core.py", line 102, in run
result = function()
sqlite3.OperationalError: near "m": syntax error
Although these playlists are added to the playlist tab, they are empty!
Content of one of these playlists mentioned in the log above: ‘media/MP3_normalized/Albums/Guns N Roses/Greatest Hits/Greatest Hits.m3u’:
01 - Welcome To The Jungle.mp3
02 - Sweet Child O' Mine.mp3
03 - Patience.mp3
04 - Paradise City.mp3
05 - Knockin' On Heaven's Door.mp3
06 - Civil War.mp3
07 - You Could Be Mine.mp3
08 - Don't Cry (Original).mp3
09 - November Rain.mp3
10 - Live And Let Die.mp3
11 - Yesterdays.mp3
12 - Ain't It Fun.mp3
13 - Since I Don't Have You.mp3
14 - Sympathy For The Devil.mp3
Issue Analytics
- State:
- Created a year ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Support relative paths from playlist file to media files #1 - GitHub
I use fb2k to manage a music collection on my NAS. The library is mounted as a network drive (Z:\) on the machine....
Read more >Relative Paths in Playlists - MusicBee
The "Use Relative File Paths" is specifically related to exported playlists. It has no effect on the playlists within MB.
Read more >VLC: relative paths in playlist | PortableApps.com
It seems since V1.5 vlc doesn't support relative paths in playlists any longer. As i use vlc on portable devices together with the...
Read more >Automatic relative paths for playlists? : r/RetroArch - Reddit
I know I can manually remove the drive letter from the playlists for them to use relative paths instead of absolutes.
Read more >BMBF Stable Releases
Support for far more songs than were previously possible (1800+) tested. Songs can be in multiple playlists at once. Core mods cannot be...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @erkr, it seems that my list got indexed after 2 days. I check this later and come back to this. The issue could be, that lists in general can take a long time to index. Another proper (absolute paths) list with 512 items in it, took around 3 days to index.
@Clusters I have playlists where the media files are in the same directory (no path). Those work fine. But I will reopen the issue for your case. Best Eric