Page 1 of 1
Patch for GS extension Media Player Indicator
Posted: Sat Dec 07, 2013 2:41 pm
by kinggo
This was something that I really missed and extension developer didn't include this yet although I asked for this a couple months ago
Add this....
"org.mpris.MediaPlayer2.guayadeque": this.applyGuayadequeRating,
in widget.js after line 232
and this.....
applyGuayadequeRating: function(value) {
GLib.spawn_command_line_async("guayadeque --set-rating=%s".format(value));
return true;
},
in widget.js after line 304
Patch for GS extension Media Player Indicator
Posted: Sat Dec 07, 2013 4:28 pm
by kinggo
meh......... it doesn't work. It allows me to rate in extension but that rating doesn't get to guayadeque
OK, this section is for rhythmbox. Can anybody point me in the right direction or maybe fix this?
applyRhythmbox3Rating: function(value) {
const Rhythmbox3Iface =
;
const Rhythmbox3Proxy = Gio.DBusProxy.makeProxyWrapper(Rhythmbox3Iface);
if (this._player.trackUrl) {
let proxy = new Rhythmbox3Proxy(Gio.DBus.session, "org.gnome.Rhythmbox3",
"/org/gnome/Rhythmbox3/RhythmDB");
proxy.SetEntryPropertiesRemote(this._player.trackUrl, {rating: GLib.Variant.new_double(value)});
return true;
}
return false;
},
destroy: function() {
this.actor.destroy();
},
Patch for GS extension Media Player Indicator
Posted: Thu Apr 03, 2014 11:37 am
by kinggo
bump....
I still didn't figure this out
with this...
applyGuayadequeRating: function(value) {
GLib.spawn_command_line_async("guayadeque --set-rating=%s".format(value));
return true;
}, - See more at:
http://guayadeque.org/index.php?p=/disc ... tor#Item_2
... I get that extension can set ratings but in terminal I see this
18:40:40: Loading 0 0 => 5717 '--set-rating=5'
18:40:40: Loading '--set-rating=5'
18:40:40: Error: File doesnt exist '--set-rating=5'
Patch for GS extension Media Player Indicator
Posted: Sun Apr 20, 2014 8:17 am
by zoidberg
You are not alone, I have the exact same problem
15:21:19: Loading 0 0 => 1 '--set-rating=3'
15:21:19: Loading '--set-rating=3'
15:21:19: Error: File doesnt exist '--set-rating=3'
Patch for GS extension Media Player Indicator
Posted: Mon Apr 21, 2014 5:15 pm
by anonbeat
Guayadeque dont accept command line options like this...
It just accepts a list of files to play.
Will need to check if mpris added the option to set the rate of the current track.
Patch for GS extension Media Player Indicator
Posted: Tue Apr 22, 2014 4:18 am
by kinggo
THX. If it can't be done, OK. But I would like to know is it doable or not.
Patch for GS extension Media Player Indicator
Posted: Tue Apr 22, 2014 4:27 pm
by anonbeat
Mpris dont have any option to receive a rating
Will need to do it other way...
Patch for GS extension Media Player Indicator
Posted: Tue Apr 22, 2014 4:55 pm
by kinggo
If you can, good. If not, it's not such a big deal. I just wanted to know should I continue to bug people around with this.
The thing is, long time ago, before GS, I was using task bar icon. But after switching to GS that became hit or miss. Mostly miss because icon almost never showed up so at the end I gave up and started to use this media extension. Maybe I should try that tray icon again. Maybe now it will or won't be consistent.