question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filesystem provider parse_album errors out

See original GitHub issue

What version of Music Assistant has the issue?

2022.7.0

The problem

filesystem provider errors out likely due to spaces in the filename (not in the parent folder name) as it seems

How to reproduce

create path structure as indicated in the below logs and sync

Relevant log output

2022-07-23 11:46:19 ERROR (MainThread) [music_assistant.music.file] Error processing /mnt/music/Kabah/La Vuelta Al Mundo/02 Florecitas.mp3 - not enough values to unpack (expected 2, got 1)
File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/filesystem.py", line 234, in sync_library
File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/filesystem.py", line 501, in _parse_track
File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/filesystem.py", line 738, in _parse_album
2022-07-23 11:46:20 ERROR (MainThread) [music_assistant.music.file] Error processing /mnt/music/Kabah/La Vuelta Al Mundo/03 El Complot.mp3 - not enough values to unpack (expected 2, got 1)
File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/filesystem.py", line 234, in sync_library
File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/filesystem.py", line 501, in _parse_track
File "/usr/local/lib/python3.10/site-packages/music_assistant/music_providers/filesystem.py", line 738, in _parse_album

Additional information

music mounted via nfs from synology

What version of Home Assistant Core are your running

2022.7.6

What type of installation are you running?

Home Assistant Supervised

On what type of hardware are you running?

Linux

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
marcelveldtcommented, Jul 23, 2022

This is a real edgecase. So you have no ID3 tags in your files and then it falls back to parsing the artist and title from the filename except in that case it kind of expects a filename like this “artist - title.mp3”

I will fix the bad error so it ignores these files. I strongly suggest you to either use proper ID3 tags on your files or rename them to have the common/standard filename of “artist - album”.

1reaction
antonyslatercommented, Jul 27, 2022

@antonyslater do not comment on an already closed issue please. Please open your own issue if you have any issues. That will keep our minds sane, thank you! That said, I did find the issue you reported above. Fixed in 2022.7.2 !

My apologies, it was only because it was the exact same issue I was seeing. Will try 2022.7.2 and if I still have issues will log a fresh issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve filesystem provider with relative file path ...
The .ipynb file exists and can be opened in a separate editor. Logs. No Jupyter logs. Error shows up in Log (Window).
Read more >
Copy-item FileSystem provider error - Server Fault
I'm running Powershell V4.0 on Windows 7, and my server is running on Windows server 2012 r2 with powershell V4.0 also. I want...
Read more >
PowerShell : Attempting to perform the InitializeDefaultDrives ...
... regular PowerShell shell, I see an error Attempting to perform the InitializeDefaultDrives operation on the 'FileSystem' provider failed.
Read more >
BEE Plugin Tech Docs | File System Provider errors
Error Codes ; 3100, Something went wrong accessing backend filesystem, 503 Service Unavailable, Default generic Error ; 3200, Resource not found, 404 Not...
Read more >
Filesystem error handling - Dan Luu
Since the error status of the address space is cleared by this function, callers are responsible for checking the return value and handling...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found