After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 642014 - Tracker cannot index optical data disc's data
Tracker cannot index optical data disc's data
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Miners
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: tracker-general
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2011-02-10 10:35 UTC by Simon Hong
Modified: 2011-02-15 09:34 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (8.44 KB, patch)
2011-02-14 13:22 UTC, Carlos Garnacho
none Details | Review

Description Simon Hong 2011-02-10 10:35:28 UTC
tracker version : 0.9.37
os : ubuntu 10.10
glib : 2.6.26

tracker-miner-fs cannot index optical data disc's data.
disc has a lot of mp3, wav, and jpeg files.

Tracker uses g_content_types_guess_for_tree() functions to know disc's characteristics.
But, g_content_types_guess_for_tree() for optical disc just return NULL.
So, tracker don't start to index disc's contents.
Comment 1 Martyn Russell 2011-02-10 12:42:04 UTC
Hi,

Just to confirm, is IndexOpticalDiscs set to true in your config? 
By default it should be disabled.
Comment 2 Simon Hong 2011-02-10 13:55:54 UTC
Hi, 

Yes, I only changed IndexOpticalDiscs value to TRUE in tracker-miner-fs.cfg.

Thank you.
Simon.
Comment 3 Carlos Garnacho 2011-02-14 13:22:35 UTC
Created attachment 180824 [details] [review]
patch

This patch uses g_mount_guess_content_type() to find out the content type, removing the need for that

if (!content_type)
  is_blank = TRUE

heuristic, with this patch it detects data CDs correctly, I've also retested with blank DVDs ,audio CDs and usb sticks. I don't have DVD movies around but I'm pretty sure that it'll be handled just fine by this function.
Comment 4 Aleksander Morgado 2011-02-15 09:34:18 UTC
Pushed Carlos' patch after reviewing it.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.