This forum has been archived. All content is frozen. Please use KDE Discuss instead.

transfer user rating information from MTP device to amarok

Tags: None
(comma "," separated)
hanselda
Registered Member
Posts
3
Karma
0
OS
Hello all,

I just made a small script to transfer the user rating information from MTP device to amarok:
mtp-rating.py

Just plugin you MTP device and run the script while amarok is running. The script uses the libmtp to get the track information from MTP device. And use DOCP to transfer the rating to amarok. Only the rating for the corresponding music in the amarok collection database will be changed. It is not necessary to have any qt or kde binding. The work is done through shell process.

The same principle can be used to transfer album art and so on from MTP to amarok.

Does anyone knows how to write rating information back to MTP device?
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
What version of Amarok are you talking about?

JFYI, Amarok 2.x doesn't use DCOP anymore but D-BUS


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
hanselda
Registered Member
Posts
3
Karma
0
OS
Well I am still using 1.x, with kde 3.5.10.


Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], markhm, Sogou [Bot], Yahoo [Bot]