Properties dialog crashes on multiple tags or missing data
Bug #419625 reported by
Aly Hirani
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Fix Released
|
Medium
|
Unassigned |
Bug Description
STR:
1) Open player
2) Right click on any song in the current playlist
3) Click on "Properties"
Nothing happens. Attached is the traceback by running Exaile from a console
Changed in exaile: | |
assignee: | nobody → Adam Olsen (arolsen) |
importance: | Undecided → Medium |
milestone: | none → 0.3.0.1 |
status: | New → Confirmed |
Changed in exaile: | |
status: | Confirmed → New |
status: | New → Confirmed |
summary: |
- Properties of a song in the playlist crashes with a traceback + Properties dialog crashes on multiple tags or missing data |
Changed in exaile: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Adding a simple print line before line 71 of xlgui/properties.py shows that this happen when a tag has multiple values.
Apparently the strings returned contain some null bytes (see xl/metadata/ __init_ _.py 's j() function : return u'\u0000' .join(value) ), which causes the traceback above.
Instead, the different tags should be joined with, imo, a backslash, and the backslash used to parse the text entry into several values for the tag when the user closes the dialog. I prefer the backslash over slash because some songs (for instance from Coldplay's albums) are labelled "foo / bar", so that would break their title tag into two values, while I don't think there is any song that contains a backslash in it's name.