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 645052 - Improve extraction of title from filenames with multiple dots
Improve extraction of title from filenames with multiple dots
Status: RESOLVED FIXED
Product: tracker
Classification: Core
Component: Miners
0.10.x
Other Linux
: Normal minor
: ---
Assigned To: tracker-general
Jamie McCracken
Depends on:
Blocks:
 
 
Reported: 2011-03-17 18:07 UTC by Lionel Landwerlin
Modified: 2011-03-21 16:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rework (931 bytes, patch)
2011-03-21 16:21 UTC, Lionel Landwerlin
none Details | Review
rework v2 (1.21 KB, patch)
2011-03-21 16:39 UTC, Lionel Landwerlin
none Details | Review

Description Lionel Landwerlin 2011-03-17 18:07:00 UTC
Hi,

I'm having really poor nie:title for some video files :

tracker-info file:///home/user/Videos/Series/The.Coin.Truc.2010.S01E02.HDTV.XviD-LOL.avi
Querying information for entity:'file:///home/user/Videos/Series/The.Coin.Truc.2010.S01E02.HDTV.XviD-LOL.avi'
  'urn:uuid:a1583540-efaf-fd3f-66fc-7d2cc2b84cdf'
Results:
  'http://purl.org/dc/elements/1.1/date' = '2010-06-08T09:15:24Z'
  'http://purl.org/dc/elements/1.1/date' = '2011-03-17T17:44:59Z'
  'http://purl.org/dc/elements/1.1/source' = 'urn:nepomuk:datasource:9291a450-1d49-11de-8c30-0800200c9a66'
  'http://purl.org/dc/elements/1.1/title' = 'The'
  'tracker:added' = '2011-03-17T17:47:56Z'
  'tracker:modified' = '2183'
  'rdf:type' = 'http://www.w3.org/2000/01/rdf-schema#Resource'
  'rdf:type' = 'http://www.semanticdesktop.org/ontologies/2007/01/19/nie#DataObject'
  'rdf:type' = 'http://www.semanticdesktop.org/ontologies/2007/01/19/nie#InformationElement'
  'rdf:type' = 'http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject'
  'rdf:type' = 'http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Media'
  'rdf:type' = 'http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Visual'
  'rdf:type' = 'http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Audio'
  'rdf:type' = 'http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Video'
  'rdf:type' = 'http://www.tracker-project.org/temp/nmm#Video'
  'nie:byteSize' = '366673550'
  'nie:dataSource' = 'urn:nepomuk:datasource:9291a450-1d49-11de-8c30-0800200c9a66'
  'nie:isPartOf' = 'urn:uuid:4ff8aea0-6dd3-fdd6-7700-6285f77c3ef2'
  'nie:url' = 'file:///home/user/Videos/Series/The.Coin.Truc.2010.S01E02.HDTV.XviD-LOL.avi'
  'nfo:belongsToContainer' = 'urn:uuid:4ff8aea0-6dd3-fdd6-7700-6285f77c3ef2'
  'tracker:available' = 'true'
  'nie:contentCreated' = '2010-06-08T09:15:24Z'
  'nie:informationElementDate' = '2010-06-08T09:15:24Z'
  'nie:isStoredAs' = 'urn:uuid:a1583540-efaf-fd3f-66fc-7d2cc2b84cdf'
  'nie:mimeType' = 'video/x-msvideo'
  'nie:title' = 'The'
  'nfo:fileLastAccessed' = '2011-03-17T17:44:59Z'
  'nfo:fileLastModified' = '2010-06-08T09:15:24Z'
  'nfo:fileName' = 'The.Coin.Truc.2010.S01E02.HDTV.XviD-LOL.avi'
  'nfo:fileSize' = '366673550'
  'nfo:codec' = 'MPEG-1 layer 3'
  'nfo:duration' = '2508'

Could you reconsider the inclusion of this patch :

http://build.meego.com/package/view_file?file=0002-Tracker-extract-Parse-the-video-filename-to-obtain-e.patch&package=tracker&project=devel%3Acontentfw&srcmd5=c91b724488ee9ae476a9ce65755d8152

Even if it's just a guess, it seems better than what we have at the moment.
Comment 1 Martyn Russell 2011-03-17 18:32:04 UTC
Lionel, this was discussed on the MeeGoDev list recently and has been reported a while back by Intel actually already ;)

Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 607548 ***
Comment 2 Lionel Landwerlin 2011-03-21 16:06:45 UTC
I'm reopening, the problem is probably located around here :

src/libtracker-data/tracker-db-interface-sqlite.c:210: /* "/home/user/path/title_of_the_movie.movie" -> "title of the movie"
Comment 3 Lionel Landwerlin 2011-03-21 16:21:45 UTC
Created attachment 183959 [details] [review]
rework
Comment 4 Lionel Landwerlin 2011-03-21 16:39:57 UTC
Created attachment 183965 [details] [review]
rework v2
Comment 5 Aleksander Morgado 2011-03-21 16:58:40 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.