Bug 336380

Summary: Port Nepomuk collection to baloo
Product: [Applications] amarok Reporter: Konrad Renner <koni_renner>
Component: Collections/NepomukAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED LATER    
Severity: wishlist CC: aroonavm11, koni_renner, me, me, ug201310004
Priority: HI    
Version: 2.8-git   
Target Milestone: later   
Platform: unspecified   
OS: Linux   
URL: http://community.kde.org/Baloo/NepomukPort
Latest Commit: Version Fixed In:
Bug Depends on:    
Bug Blocks: 318686, 307430, 320256, 323894, 325863    

Description Konrad Renner 2014-06-18 08:20:30 UTC
Since KDE 4.13 Nepomuk is replaced with baloo. Please port the Nepomuk collection and the sync feature (sync between Nepomuk and Amarok local collection) to baloo

I think the ability to use Tags/Ratings system wide (Amarok, Dolphin, search, etc.) is an absolute killer feature.

Reproducible: Always

Actual Results:  
Amarok does not sync Tags/Ratings with baloo

Expected Results:  
Amarok syncs Tags/Ratings with baloo and shows a local collection which is backed by baloo (analog the Nepomuk collection)
Comment 1 Konrad Renner 2014-07-05 19:53:17 UTC
How tags are stored in nower days: http://vhanda.in/blog/2014/07/tagging-your-files/
Comment 2 Konrad Renner 2014-08-14 07:05:54 UTC
See also Bug 332665
Comment 3 Myriam Schweingruber 2014-08-14 09:24:44 UTC
(In reply to Konrad Renner from comment #2)
> See also Bug 332665

Which is irrelevant to Amarok, it is not done by the same team. All Nepomuk related bugs for Amarok are depending on this one anyway, I already marked those as a dependency.
Comment 4 Konrad Renner 2014-08-14 11:15:01 UTC
(In reply to Myriam Schweingruber from comment #3)
> (In reply to Konrad Renner from comment #2)
> > See also Bug 332665
> 
> Which is irrelevant to Amarok, it is not done by the same team. All Nepomuk
> related bugs for Amarok are depending on this one anyway, I already marked
> those as a dependency.

Ok, I thought that this bug maybe contains informations which could be helpful (e.g. namespaces for the extended file attributes) for this bug too.
Comment 5 Vishesh Handa 2014-10-27 16:37:19 UTC
Amarok had a backend which used the audio data indexed by Nepomuk instead of its own index. This backend should not be ported to Baloo. Baloo just wasn't made for such a use case. It's more of a file searching solution.

If you want to port the tags/ratings away from Nepomuk, my blog post provides details about how we store the tags. The API to use would be KFileMetaData::UserMetaData from the kfilemetadata repository. This is just a light Qt wrapper on top of xattrs. This is a simple job, and certainly should not take more than a day or so for even beginners.
Comment 6 Konrad Renner 2014-10-28 07:46:45 UTC
(In reply to Vishesh Handa from comment #5)
> Amarok had a backend which used the audio data indexed by Nepomuk instead of
> its own index.

The important part is, that the tags and ratings are synced (if I rate an audio file in Dolphin, the same rating should be used in Amarok. The other way should also work).

 I think a seperate nepomuk or baloo backend is unnecessary.
Comment 7 Aman 2014-12-17 06:15:52 UTC
I want to work on it. Please help me in getting started.
Comment 8 Konrad Renner 2014-12-19 07:19:53 UTC
(In reply to Aman from comment #7)
> I want to work on it. Please help me in getting started.

Great! What kind oft help do you need?
Comment 9 Aroonav Mishra 2015-01-25 15:57:50 UTC
Is anyone still working on this? If possible then I would like to take this up.
Comment 10 Myriam Schweingruber 2015-01-26 08:41:12 UTC
(In reply to Aroonav Mishra from comment #9)
> Is anyone still working on this? If possible then I would like to take this
> up.
I don't think there is anybody working on it. Please check the sources mentioned by Vishesh for the necessary changes.

Also please subscribe to our developer mailing list and read the necessary documentation for Amarok development.
Comment 11 Konrad Renner 2015-02-03 17:08:55 UTC
will the kf5 port of Amarok make use of baloo and/or xattr?
Comment 12 Myriam Schweingruber 2015-02-03 17:53:24 UTC
(In reply to Konrad Renner from comment #11)
> will the kf5 port of Amarok make use of baloo and/or xattr?

I presume baloo, but this question (with a rationale, ideally) is better asked on the devel mailing list.
Comment 13 Myriam Schweingruber 2015-08-09 14:50:18 UTC
This should only be started once the Qt5 port is advanced enough.
Comment 14 Myriam Schweingruber 2015-09-10 19:59:07 UTC
Closing, as Baloo will be made optional later once the Q5 port is done. Will be tracked in the task manager on Phabricator later.