Playing local files does not use information from the database

Bug #257241 reported by Olivier Tilloy
14
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

Olivier Tilloy (osomon)
Changed in elisa:
importance: Undecided → Medium
milestone: none → 0.5.x
status: New → Confirmed
Revision history for this message
Michael Terry (mterry) wrote :

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.

Revision history for this message
Philippe Normand (philn) wrote :

That patch looks indeed wrong. I see at least a line that will trigger a NameError:

dfr.addCallback(enqueu, self.music_player.player.enqueue_to_playlist)

Will rework this...

Revision history for this message
Philippe Normand (philn) wrote :

And that patch is for the poblesec play_files() method, which is not used by the "filesystem" controller.. so totally unrelated with this bug.

Revision history for this message
Philippe Normand (philn) wrote :

working on proper patch for filesystem controller

Changed in elisa:
assignee: nobody → Philippe Normand (philn)
milestone: 0.5.x → 1.0.8
status: Confirmed → In Progress
Philippe Normand (philn)
description: updated
Philippe Normand (philn)
Changed in elisa:
status: In Progress → Fix Committed
Olivier Tilloy (osomon)
Changed in elisa:
assignee: Philippe Normand (philn) → nobody
status: Fix Committed → Confirmed
Olivier Tilloy (osomon)
Changed in elisa:
milestone: 1.0.8 → none
tags: added: patch-available
Olivier Tilloy (osomon)
tags: added: player
Michael Terry (mterry)
tags: added: oem-services
tags: added: visual
tags: added: patch-forwarded-upstream
removed: patch-available
Revision history for this message
dino99 (9d9) wrote :

The latest free moovida 1.09 does not get any maintenance since a while. Now moovidadb.com is supporting Linux and support can be found at : http://www.fluendo.com/faq/

Changed in moovida:
status: Confirmed → Invalid
Changed in moovida (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.