full listings » Content & Discovery, Tools


DBusbird inf3rn0

dbus extension for songbird


Description

Changelog:
*extended support to 0.6pre
With this extension you will be able to interact with songbird
by D-Bus on linux platforms.
for now the following methods are provided:
getArtist()
return artist name as string
getTitle()
return song name as string
getAlbum()
return album name as string
getStatus()
return status as string
it can be “playing”,”paused”,”stopped”
To test the extension here is a simple python script:
#!/usr/bin/env python
import dbus
bus = dbus.SessionBus()
object = bus.get_object(‘org.mozilla.songbird’, ’/org/mozilla/songbird’)
print object.getArtist()
print object.getTitle()
print object.getAlbum()
print object.getStatus()
For now the status change works on trackChange or stop.
Soon will be implemented a better version.
If you need other kinds of info by D-Bus post a comment there
and the new methods will be implemented in the next version
Thx




Release Notes

32 bit version should work now




Comments

(110)


Tahj
Tahj

Do you plan to make it available for 64bits Linux ?

about 5 years ago
brunods
brunods

Could you make it available for sb 0.6?

almost 5 years ago
jigarshah
jigarshah

How do i use it with pidgin to show what i am playing ?

almost 5 years ago
inf3rn0
inf3rn0

now it’s available for sb 0.6,
you should program a plugin for pidgin, actually i have done one for emesene
and seems work good.
i think pidgin supports python you need to know this language to make
a script, it’easy or elswhere find a premade plugin and modify that one
to make it compatible with my extension.
it’s easy if you need help contact me
Bye :)

almost 5 years ago
kissthechaos
kissthechaos

How did you get it to work on emesene?

almost 5 years ago
Doc_McCoy
Doc_McCoy

Hi, nice plugin. But it is still a bit buggy. "playing" and "stopped" status are working well, sadly "paused" isn't working.

Furthermore I have a problem with shoutcast internet radio:
getTitle = name of the radio station
getArtist = unknown
getAlbum = unknown

All right. But the Artistname and Title are broadcasted as one phrase by the internet stream.
And dbusbird doesn't detect this information.

over 4 years ago
Deathcrush
Deathcrush

Just what I'd been looking for. Would like to also be able to return the following

Track Number
Date / Year
Bitrate
Length of track (in seconds)
Filename and/or Fileformat

over 4 years ago
Vernier
Vernier

DBus interface to the MPRIS specification would be really useful

http://wiki.xmms2.xmms.se/wiki/MPRIS

over 4 years ago
inf3rn0
inf3rn0

okay let me answer you all.

Doc_McCoy:
That's strange, i'm not working on the code for now because i am very busy.
However i remember that dbus-bird detects the info as soon as the song change,
so maybe this is due to changes in SB API; as i got time i will fix it.

Deathcrush:
Yes i can add them to the list of object methods.

Vernier:
Intresting, i will take a look also if i don't know how xmms plugins works...
Maybe i will develop a patch for xmms to allow this kind of feature.

Hope that this will help.

Cheers

over 4 years ago
inf3rn0
inf3rn0

For the emesene plugin download this file:

http://rapidshare.com/files/153886509/songbird_emesene.tar.gz.html

Copy all the files into /usr/share/emesene/plugins/currentsong/ and start emesene.
Go into plugins option->currentSong and choose Songbird from the menù.
This is just a modified version of the actual emesene plugin, use it at your own risk.

over 4 years ago
Deathcrush
Deathcrush

Works well, although there is a problem. It returns only the first 30 characters. Can you fix that? It would be better if they dont get truncated.

over 4 years ago
fcastillo
fcastillo

This add-on makes songbird 0.7 crash when used with the Shoutcast radio add-on. Everytime an station is playing songbird crashes.
Another issue is that aMSN has a music plugin, that now has the feature of showing the info from Songbird, but it uses this add-on to get the info, but no info is shown because I get this error on the plugin:

can't read "::music::config(separator)": no such element in array

I already posted this issue to the plugin developers, but just in case I was letting you people know.

over 4 years ago
inf3rn0
inf3rn0

the source code posted is for emesen plugin not aMsn, and about the crash
i must see what i can fix because i don't use shoutcast.
about the size is fixable expect something soon.

cheers

Diego

over 4 years ago
parm289
parm289

Would it be possible using this extension to write a conky-compatible python script using DBus to display Songbird info in conky?

over 4 years ago
stormblast
stormblast

there is a problem in dbus. when dbus is enabled i cannot use shouthcast because songbird immidiately crashes and i have to disable dbus in order to listen to radio.im in ubuntu 8.10. is there anything i should do?

over 4 years ago
fcastillo
fcastillo

Has there been any progress for this add-on? Made it compatible with the RC3 would be something nice, even better if you can make it work for the final version. It's an awesome add-on, thanks for the good work

over 4 years ago
BassMan449
BassMan449

Is there any intention of making this addon capable of starting and stopping music? If not would you be willing to release your source code so others (myself included) could add that functionality?

over 4 years ago
inf3rn0
inf3rn0

Hi all,
thx for the replies, actually i'm very busy and didnt notice a new version of sb was out.

@stormblast: i know about that and i still havent time to fix it and probably i know why it
crashes

@BassMan449: this addon is made to find info about songs while sb is playing, there is no need to stop, play music because is out of its range. if you need something like that use firetray->right click on the systrayicon->Music and you done :D.
About the source code...is on google-code search it but is under LGPL.

@fcastillo: yeah im going to make it compatible soon

Cheers

Diego

over 4 years ago
stevel
stevel

yay! thanks for the update inf3rn0!

over 4 years ago
stormblast
stormblast

can anyone tell me why i cant listen to shoutcast streams with dbusbird enabled and how can i fix it?

over 4 years ago
fcastillo
fcastillo

I'm having the same problem, I even opened a bug, and post it here before but it seems that hasn't been fix. I'd love to be able to use DBus while I'm listening to my shoutcast stations.

over 4 years ago
inf3rn0
inf3rn0

Can you give me a shoutcast station?
So i can understand why is not working.

over 4 years ago
Deathcrush
Deathcrush

How do I remove the 30 character limit?

over 4 years ago
Vernier
Vernier

I've added support for the Dbusbird interface to pidgin-musictracker so you can use this to feed now-playing information to pidgin.

over 4 years ago
arayl
arayl

@inf3rn0: The SHOUTcast bug is here: http://bugzilla.songbirdnest.com/show_bug.cgi?id=13185

over 4 years ago
The_Keeganator
The_Keeganator

Can you have a longer character limit.
Also can you have how much the song has played.

over 4 years ago
sinnvoller
sinnvoller

Hi inf3rn0,

I'm using your plugin for a better integration of songbird into the Avant Window Navigator. I'm wondering if it is possible to add functions like start(), pause(), next(), prev() using the playback component:

// just a foobar example ;)
var playback = Components.classes["@songbirdnest.com/Songbird/PlaylistPlayback;1"].getService(Components.interfaces.sbIPlaylistPlayback)

if(playback.playing && !playback.paused) {
playback.pause();
} else {
playback.play();
}

This would really enhance your plugin. I would try it on my own, but I couldn't find any source code...

over 4 years ago
Anigma
Anigma

Does this work on x64?

over 4 years ago
valuser
valuser

It would be great when there is also a function to increase/decrease the volume of songbird.

about 4 years ago
inf3rn0
inf3rn0

Check google code for the code it should be still there.
The extension is meant to trace information and share them with the others applications, so if you want something different just take the code and change it.
I will be happy to contribute with my exension to yours.

Cheers

Diego

about 4 years ago
theaulddubliner
theaulddubliner

i'm getting ""DBusbird" could not be installed because it is not compatible with your Songbird build type (Linux_x86-gcc3). Please contact the author of this item about the problem."

running 1.1.1 on Ubuntu Linux 6.10 32bit

about 4 years ago
inf3rn0
inf3rn0

oh k i will fix it

about 4 years ago
theaulddubliner
theaulddubliner

that works fine now - thanks inf3rn0

about 4 years ago
Nonick
Nonick

Where can i find the source code?
(Searching google code gives only pidgin-musictracker references)

about 4 years ago
BadChoice
BadChoice

Hi! I'm developing a Coversutra for linux, and I would like to use this dbus extension for songbird, the problem, is that getFile method return me unknown.. could it be possible to return the uri of the file?

Thanks a lot!

about 4 years ago
BadChoice
BadChoice

I forgot on the previous post, I would like to have the song rating as well, is it possible?
Thanks!!

about 4 years ago
BadChoice
BadChoice

Well, I've now a working version of CoverGloobus, it works pretty well for banshee.. I would like to add those songbird dbus actions, if you can't do it, can you give me the code so I can update it!

Thanks!

To test my application:

http://jordihp.deviantart.com/art/CoverGloobus-1-1-118080718

Thanks!

about 4 years ago
Jerome
Jerome

Thank you!!!!!!!!!!

about 4 years ago
Jerome
Jerome

Mmm... It's not working with "emesene"
I have nothing!
I'm on Ubuntu 8.10 intrepid Ibex

about 4 years ago
Jerome
Jerome

I put SongBird ans now it put "not running" on the option.
I use SongBird 1.1.2

about 4 years ago
Lumpenturd
Lumpenturd

I attempted to install 0.2.2.4 64 bit on songbird 1.1.2, and I'm getting an error that it's not compatible.

about 4 years ago
Light-
Light-

To make it work with latest songbird, unzip the .xpi file somewhere. Edit the install.rdf and change <em:maxversion>1.1.1</em:maxversion> to <em:maxversion>1.1.2</em:maxversion>

Save install.rdf and rezip everything. rename the zipfile to .xpi and try installing it.
Worked for me :)

about 4 years ago
nnewbill
nnewbill

The above works for installing it... but if you look in the addons window and try to configure it, it tells you that it is not compatible.

Would really like this updated for 1.1.2 whenever you get a chance.

Thanks for the wonderful addon.

about 4 years ago
elvasco86
elvasco86

I need the x64 Version :S

almost 4 years ago
justnj
justnj

I tried amending the .rdf file as in the comment above, still unable to to install. Is there a version for 1.2 coming soon?

almost 4 years ago
inf3rn0
inf3rn0

Hey, as firetray extension expect something soon.

almost 4 years ago
inukaze
inukaze

Man i can't use the add-on , i have "Song Bird 1.2.0 Build 1146 (20090616030029)" This add on.

Which Older version i need to use it ????

almost 4 years ago
elvasco86
elvasco86

Me tomé el atrevimiento de modificarlo para que funcione en la version 1.2.0, espero q no te moleste:

Para la version 1.2.0 o anterior: http://rapidshare.com/files/260825573/dbusbird_x86.xpi.html

almost 4 years ago
elvasco86
elvasco86

Despues de testearlo un poco, no funciona ¬¬ se queda colgado

almost 4 years ago
koxmoz
koxmoz

No estaría nada mal una versión para X86_64, lamentablemente no se nada de eso sino ya estaría metiendo mano·!·!·

es que quiero mostrar mi estado en aMSN y no puedo creo que me falta esta extensión·!·!·

almost 4 years ago
xanatos
xanatos

hi, I want to install this plug in for my songbir to use in my emesene but the green button is nost available how can I get this plug in or just I'll copy the script ???

thanks.

almost 4 years ago
Debian.bird
Debian.bird

please una versión de x64 !!1

over 3 years ago
BR-Charles
BR-Charles

Please,

It should be updated for songbird 1.2.0 and 1.4 releases. I can't use the music plugin in my amsn.

Please, take care of this. Thank you.

over 3 years ago
siabost
siabost

Hey!

Me too - I'm on V1.2 but presumably this will become 1.3 or 1.4 soon.

Looking forward to having it back again.

There should be a set of "premium" add-ons to be updated and released along with each new official version of Songbird - and this should be one of them! :-)

Thanks

over 3 years ago
Spike1506
Spike1506

I would like to see a feature which makes it possible to get the album art of the song.

over 3 years ago
thesmyth
thesmyth

@Spike1506 and others, you might want to go take a look at my extension, since it supports everything this one does and more, and this one doesn't seem to be under active development anymore.

http://addons.songbirdnest.com/addon/1626

over 3 years ago
joel.bacal
joel.bacal

i made it work, and uploaded the file to the internet.. just download it from http://dl.dropbox.com/u/3264051/dbusbird_x86_64.xpi

over 3 years ago
tinagus2000
tinagus2000

Joel.bacal, Sorry to bother you but the link you posted is dead. ¿Can you upload it again please?

over 3 years ago



Download
Log in to Rate

Statistics
Downloads: 10,797

Average Rating:
4 out of 5  based on 18 ratings

Images: 0

Comments: 110

Last Updated: about 4 years ago
Details
Name: DBusbird

Author: inf3rn0

Version: 0.2.2.4 version history



Log in to Add a Tag
Share
Embed:

Share: