Perl Script, Banshee, and DBUS

Discussion about Perl, TCL or Python scripts and C/C++ plugins (using and writing them).

Perl Script, Banshee

Postby ButteBlues » 05 Mar 2007 01:31

I've been writing a script to control Banshee via DBUS in Perl. So far EVERYTHING works EXCEPT for the Rating.

Here's the relevant portion for the Rating:

Code: Select all
sub rate {

grab_song();
use Net::DBus qw(:typing);

# Rate and announce.
$newrating = dbus_int32(@_);

$iface->SetPlayingRating($newrating);

Xchat::print("Rated $track by $artist a $newrating/$maxrating.");

return 1;

}


grab_song is a subroutine that sets a lot of vars related to the song in question.


Now, this portion of the code only KIND OF works. You see, regardless of whatever I type in, it ALWAYS sets the new rating to 5 via DBUS.

Any ideas?
ButteBlues
 
Posts: 2
Joined: 05 Mar 2007 01:28

Postby ButteBlues » 10 Mar 2007 19:23

BUMP
ButteBlues
 
Posts: 2
Joined: 05 Mar 2007 01:28

Postby culb » 07 Dec 2009 20:46

Even though this is old, I'll see if its still around. If this script is still around, can you show the rest?
Any other xchat script for banshee using dbus?
culb
 
Posts: 1
Joined: 07 Dec 2009 20:31


Return to Scripts and Plugins

Who is online

Users browsing this forum: No registered users and 1 guest