GNOME Bugzilla – Bug 678519
grl_media_source_get_media_from_uri not implemented for tracker media source plugin
Last modified: 2014-08-08 23:56:44 UTC
This is an important feature for Grilo Tracker plugin. It allows applications to obtain a Grilo media source object from a specific URI, and in this way access to its metadata. Please consider adding it to the 0.1.x version in next release.
any update on this ?
Didn't have time to work on it. Patches are welcomed :)
Any update on this?
Alvaro, sorry, didn't have time to work on it yet. A patch is more than welcomed.
Created attachment 282103 [details] [review] tracker: Add test_media_from_uri Given an URL, tests if Tracker source can create a media out of it.
Created attachment 282104 [details] [review] tracker: Add media_from_uri operation Given an URL, re-constructs the GrlMedia corresponding to that URL.
Looks like quite a bit of duplicated code between the 2 patches, any chance to reduce the duplication?
Do you mean mainly in the requests definitions?
Also, I've kept the duplication for consistency with the remaining code. Probably we should do a global effort in Tracker source to reduce the duplication.
(In reply to comment #9) > Also, I've kept the duplication for consistency with the remaining code. > > Probably we should do a global effort in Tracker source to reduce the > duplication. grl_tracker_source_test_media_from_uri() and grl_tracker_source_get_media_from_uri() do pretty much the same thing. Though one is sync, the other async. Probably not worth doing code de-duplication now as you mentioned. Both patches look fine to me.
Attachment 282103 [details] pushed as f60d9e7 - tracker: Add test_media_from_uri Attachment 282104 [details] pushed as c705e77 - tracker: Add media_from_uri operation