Playing local files does not use information from the database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Moovida |
Invalid
|
Medium
|
Unassigned | ||
moovida (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
From bug #256117.
When playing an audio or video file from the filesystem controller, no query to the database is performed to check whether we have useful information (like the track number and track title) to display instead of just the filename in the player OSD.
Steps to reproduce:
1) Start Elisa, go to Music/Music Library/Tracks
2) Play a track for which you know the file is tagged (e.g. ID3 tags for an MP3 file), i.e. for which a track number and track title are displayed
3) Notice how the player OSD displays the track title
4) Now go to Music/Music Library/Folders and browse into the folder that contains the track you previously played
5) Play the track
Expected result: the track title as indexed in the database is displayed in the player OSD
Current result: the filename is displayed in the player OSD
Changed in elisa: | |
importance: | Undecided → Medium |
milestone: | none → 0.5.x |
status: | New → Confirmed |
description: | updated |
Changed in elisa: | |
status: | In Progress → Fix Committed |
Changed in elisa: | |
assignee: | Philippe Normand (philn) → nobody |
status: | Fix Committed → Confirmed |
Changed in elisa: | |
milestone: | 1.0.8 → none |
tags: | added: patch-available |
tags: | added: player |
tags: | added: oem-services |
tags: | added: visual |
tags: |
added: patch-forwarded-upstream removed: patch-available |
Here's a patch. It only works on music files (though could easily be extended for other types), and I tested the patch using an older version of Elisa that didn't allow multiple files. So when I ported to bzr HEAD, I modified the patch, but didn't test. So you might want to look at this very closely. ;)
It checks the database for the file, and if found, uses the model from there. Else, just defaults to traditional PlayableModel with not much info.