Skip to content

grilo: Fix search

Krifa75 requested to merge Krifa75/totem:range-filter into master

By setting NULL for grl_operation_options_set_key_range_filter as
the max value, according to the doc, it leads to an undefined behavior.
In our case the search always return empty results.

Please note, that is fix only the half of the problem....
For testings I have this videos : image

This Merge request works only for a few videos :
image

Searching for "Sample":
image

If I try to digging the problem, I think there is maybe an Issue with Tracker3....

$ tracker3 sparql --query "SELECT nie:isStoredAs(?urn) nie:title(?urn) { ?urn a nfo:Video . ?urn fts:match 'Fr' . }" --dbus-service org.freedesktop.Tracker3.Miner.Files 
Results:
  file:///home/krifa/Vid%C3%A9os/Lightyear.2022.IMAX.TRUEFRENCH.HDRip.x264-EXTREME_wWw.Extreme-Down.io.mkv, French
tracker3 sparql --query "SELECT nie:isStoredAs(?urn) nie:title(?urn) { ?urn a nfo:Video . ?urn fts:match 'Sample' . }" --dbus-service org.freedesktop.Tracker3.Miner.Files 
Results:
  None

The difference between the two is that the first have the nie:title property and the other don't have it.
So I don't know if I have to open an issue in Tracker or not I'm confused :/

Thanks

Merge request reports