Warning: session_start(): open(/tmp/sess_1op9jsaruj7b06p6jhram5l8m5, O_RDWR) failed: No space left on device (28) in /www/H01/htdocs/lib/base/lib_base.php on line 280
AmarokPidgin openDesktop.org
-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans (3) .- Knowledge Base  . 

AmarokPidgin

   0.2.1  

Amarok Script

Score 78%
AmarokPidgin
zoom


Link:  Link
Downloads:  12928
Submitted:  Oct 30 2006
Updated:  Mar 3 2009

Description:

To view the README in html visit http://people.cs.uct.ac.za/~ksmith/AmarokPidgin.html

Now Listening for Pidgin
Version 0.2 - February 2009

Description:
A plugin for Amarok 1 and 2 that updates your Pidgin status message with what you are currently listening too.

If you want to update your Gaim status message, look for the AmarokGaim package.

Dependencies:
* Amarok (Tested on Amarok 1.4.10 or Amarok 2.0-SVN-Neon Jan 14 2009)
* Pidgin with D-Bus support (Tested on Pidgin 2.5.2)
* Python with D-Bus support (Tested on Python 2.5.2 (Should also work with
Python 2.4))
* DCOP client (If using Amarok 1. Tested on KDE 3.5.10)
* Optionally depends on chardet for better character
decoding. [http://chardet.feedparser.org/]




Changelog:

Changelog:
* Version 0.2.1 (03/03/2009)
- Executible bit was not switched on! So could not install in Amarok 1.
* Version 0.2 (11/02/2009)
- Your Buddy Icon can now be set to the currently playing song's album cover. Set *cover_icon* to true in the config file to enable.
- Made Media status type "tune". To update:
+ Stop AmarokPidgin in Amarok
+ Delete Media status in Pidgin
+ Start AmarokPidgin in Amarok
- New variables $rating and $score.
* Version 0.1.9 (16/05/2008)
- New variables: $year, $nowPlaying, $lyricsURL, $lyrics. Based on a patch
by Hieu Hoang.
- Variable Map. Based on work by Ryan Davis.
- Seems to work with Pidgin 2.4.0 now.
- Media status is of type Avaliable now by default.
* Version 0.1.8 (09/02/2008)
- Can use chardet library to decode strings.
- Testing of the new decoding routine thanks to David Partain.
- Fixed bug with status not returning to Media.
- Quick hack to prevent crashes on debugging output.
* Version 0.1.7 (02/08/2007)
- Closes script when Amarok sends SIGTERM. (Thanks to Kiyoshi Murata)
- Only media status is updated. No changing status anymore on song change.
- Pausing only changes status if status is on Media. (Thanks to Vasilis
Vasaitis)
* Version 0.1.6 (27/05/2007)
- Changed project name to AmarokPidgin
- Updated codebase to use purple. With thanks to the following contributors:
* Tony Bassette
* Thomas Bird
* Luigi Capriotti
* Version 0.1.5 (05/04/2007)
- Can now change nick instead of status message.
- Updates to unicode handling.
- Updates status type if necessary (Thanks to Vasilis Vasaitis)
* Version 0.1.4 (20/11/2006)
- Fixed a bug with misbehaving kdialogs. (Thanks to Kartik Mohta)
- Now changes Gaim's status back too default when script closes.
- Updates status if a song is playing when the script starts.
* Version 0.1.3 (14/11/2006)
- Now can block expletives in status message.
- Fixed a bug when reading in the configuration file.
* Version 0.1.2 (02/11/2006)
- Fixed unicode strings bug. (Thanks too Tim Su)
- Added basic configuration
* Version 0.1.1 (30/10/2006)
- Forgot to comment out logging =/
* Version 0.1 (25/10/2006)
- Initial Release




LicenseGPL
other(AmarokPidgin-0.2.1)
other(AmarokGaim-0.1.5)
Send to a friend
Subscribe
Other  Content  from keegancsmith
Report inappropriate content



goto page: prev   1  2  3  4  5  6  7  8 

-

 High CPU Usage

 
 by KenJutsu on: Nov 4 2007
 
Score 50%

High great work first of all !

Although the python script takes about 50 % of new dualcore cpu :

I´m running Ubuntu 7.10 - Gnome 2.20.1 (all latest)
kernel 2.6.23
Python 2.5.1
your script : 0.1.7 ( installed via Amarok)
Amarok : 1.4.7
Pidgin 2.2.1
Debug = True : log is empty except the track info
Ending Amarok and or Pidgin doesn´t change anything, process still there with high usage.

Thx for your help , tell me what info you need ill provide it then



Reply to this

-

 Re: High CPU Usage

 
 by KenJutsu on: Nov 4 2007
 
Score 50%

One more :
I kill the script/process by hand , it gets reloaded and then runs fine with 0 % cpu usage
Regards


Reply to this

-

 Re: Re: High CPU Usa

 
 by keegancsmith on: Nov 4 2007
 
Score 50%

Ok, I'll try and reproduce this so I can patch it.


Reply to this

-

 Re: Re: Re: High CPU

 
 by KenJutsu on: Dec 9 2007
 
Score 50%

Hello, i can now reproduce the bug directly, if X crashes the script hangs with high CPU load, to get amarok right then i have to restart that dcopserver thingy i dont know if thats automaticly under KDE its not under Gnome maybe.
The Script has to be killed too of course then ...
Regards


Reply to this

-

 Re: Re: High CPU Usage

 
 by enli on: Apr 2 2008
 
Score 50%

I confirm this


Reply to this

-

 where to download?

 
 by itmanvn on: Nov 26 2007
 
Score 50%
itmanvnitmanvn
MinAndMax
Home

where to download?


Reply to this

-

 Gentoo

 
 by guttersnipe on: Dec 6 2007
 
Score 50%

After a long struggle, I eventually got it to work in Gentoo. Here's how:

Here's what I was using:
media-sound/amarok-1.4.7-r2 (with USE python)
net-im/pidgin-2.2.2 (with USE dbus)

Download, Install, and Run AmarokPidgin
1) Download from--here
2) Inside of Amarok, go to Tools > Script Manager
3) Select "Install Script" and browse and select AmarokPidgin
4) Select AmarokPidgin on the left and select "Run"

Configure AmarokPidgin
1) Inside of Amarok, go to Tools > Script Manager
2) Select Amarok Pidgin on the left and select "configure"

Note: If pressing the "configure" button seemingly does nothing, you need to install the following package:
kde-base/kdialog

3) Choose Status
4) Type "Now Playing $artist - $title" --or something similar
5) Change Pidgin status to "Media"

Hope this helps.


Reply to this

-

 Re: Gentoo

 
 by guttersnipe on: Dec 6 2007
 
Score 50%

If you get the following error:

The script 'AmarokPidgin' exited with error code: 1

Traceback (most recent call last):
File "/home/username/.kde/share/apps/amarok/scripts/AmarokPidgin/AmarokPidgin.py", line 5, in ?
import dbus
ImportError: No module named dbus

You need to get the following package:
dev-python/dbus-python


Reply to this

-

 Re: Gentoo

 
 by guttersnipe on: Dec 6 2007
 
Score 50%

http://gentoo-wiki.com/AmarokPidgin


Reply to this

-

 Not Playing Mod

 
 by guttersnipe on: Dec 6 2007
 
Score 50%

I found this block of code in the
~/.kde/share/apps/amarok/scripts/AmarokPidgin/AmarokPidgin.py file:
elif is_in( ("empty", "idle", "paused") ):
if self.purple.PurpleSavedstatusGetCurrent() == self.status:
self.purple.PurpleSavedstatusActivate(self.default)
self.song = None

...and I changed it to:
elif is_in( ("empty", "idle", "paused") ):
if self.purple.PurpleSavedstatusGetCurrent() == self.status:
self.purple.PurpleSavedstatusActivate(self.default)
self.song = None
self.update_display("Not Listening")


...now it updates when I pause or stop my music. I wish this was an option under "configure." It probably shouldn't do this by default, though.

Enjoy ;)


Reply to this

-
.

 Re: Not Playing Mod

 
 by KenJutsu on: Dec 7 2007
 
Score 50%

Thank you very much,
i was just about to leave a
comment about the stopping,
pausing issue and there is the fix !

Thumbs Up!


Reply to this

-

 Re: Re: Not Playing

 
 by guttersnipe on: Dec 12 2007
 
Score 50%

np ;)

Well, I wasn't going to post this, but since someone has already gotten use out of one modification, perhaps someone will find use in this.
I modified the application to MY liking. Now, it says:
"Music: $artist - $title" by default
"Music: [Paused] $artist - $title" when I pause
"Music: --Song Change--" (for 5 seconds) when I change songs.

This was modified from Version 0.1.7 of AmarokPidgin.

Here's what I changed:
added "import time" to the top.
changed "def listenForSongChanges(self)" function to:

def listenForSongChanges(self):
"Listens for song changes from stdin. This method is blocking."
while True:
message = stdin.readline()

self.log("Got message: %s" % message)

# Function that given a list, will tell you if any of the
# strings are in message
is_in = lambda li: len([x for x in li if x in message]) > 0

if is_in( ("trackChange", "playing") ):
time.sleep(1)
trackCurrentTime = self.get_trackCurrentTime()
if trackCurrentTime < 5:
self.update_display("Music: --Song Change--")
time.sleep(5)

message = self.get_currently_playing()
self.song = message
self.update_display("Music: " + message)

elif is_in( ("empty", "idle", "paused") ):
if self.purple.PurpleSavedstatusGetCurrent() == self.status:
self.purple.PurpleSavedstatusActivate(self.default)
message = self.get_currently_playing()
self.song = message
self.update_display("Music: [Paused] " + message)

self.log("Default: %d" % self.default)

elif "configure" in message:
self.configure()

added "def get_trackCurrentTime(self)" function:

def get_trackCurrentTime(self):
"Gets the trackCurrentTime from amarok."
time = getoutput("dcop amarok player trackCurrentTime 2> /dev/null")

return int(time)

..if you want the whole AmarokPidgin.py file (since the tabs will be all screwed up here), email me at fedcba098 |at| g|/\|ail

Enjoy :)


Reply to this

-
.

 KDE 4 problem

 
 by CrazyBanana on: Feb 14 2008
 
Score 50%

I am using the script in both KDE 3.5 and KDE 4.0 with Amarok 1.4.8. In KDE 3.5 it works, as expected, in KDE 4.0 however the variables don't get substituted. Other than that, the script does communicate with Pidgin, for example if I set "$artist - $title [amaroK]' as status, I get ' - [amaroK]' in Pidgin. Any thoughts on how to solve that?


Reply to this

-

 Re: KDE 4 problem

 
 by keegancsmith on: Feb 16 2008
 
Score 50%

Check if you have the dcop commandline program and that it is working. For example try running from the commandline:

dcop amarok player artist


Reply to this

-
.

 Re: KDE 4 problem

 
 by CrazyBanana on: Feb 18 2008
 
Score 50%

The command line dcop works:
$ dcop amarok player artist
Fleetwood Mac
$


Reply to this

-

 Re: Re: KDE 4 proble

 
 by keegancsmith on: Feb 18 2008
 
Score 50%

Ok.on line 15 change it from DEBUG = false to DEBUG = true. Run the program for a bit then post /etc/AmarokPidgin.log


Reply to this

-

 Re: KDE 4 problem

 
 by CrazyBanana on: Feb 18 2008
 
Score 50%

Thanks for the reply! For each song change I only get a horizontal line in the logfile (/tmp/AmarokPidgin.log)


Reply to this

-
.

 Re: KDE 4 problem

 
 by CrazyBanana on: Feb 27 2008
 
Score 50%

Anything else I could try...?


Reply to this

-

 Re: Re: KDE 4 proble

 
 by keegancsmith on: Feb 27 2008
 
Score 50%

Try running

purple-remote 'setstatus?status=away&message=dont disturb'

See if your status updates


Reply to this

-

 Re: KDE 4 problem

 
 by CrazyBanana on: Feb 27 2008
 
Score 50%

It does change. The problem is that the variables $title and $artist in the script are not replaced with the appropriate strings, the intercommunication does work. It must be a python thing...



-

 Re: Re: KDE 4 proble

 
 by keegancsmith on: Feb 27 2008
 
Score 50%

Hey, apply this patch to AmarokPidgin.py: http://pastebin.com/m405ed69c
Run it for a bit then send me the output /tmp/AmarokPidgin.py

This code is untested, but hopefully should give me some useful info


Reply to this

-

 Re: KDE 4 problem

 
 by CrazyBanana on: Feb 27 2008
 
Score 50%

So the status messages format that I set is this: '$artist - $title [amaroK]'

After applying your patch, the output in /tmp/AmarokPidgin.log is:

http://pastebin.com/m713a2b89

Some track changes were manual, by means of skip track, for others I waited until the song changed by itself after it was over.



-

 Re: Re: KDE 4 proble

 
 by keegancsmith on: Feb 27 2008
 
Score 50%

Ok, it seems the problem has changed since last time. Try this diff now and posting the log please :)

http://pastebin.com/m48e72033

This bug will be squashed! ;P


Reply to this

-

 Re: KDE 4 problem

 
 by CrazyBanana on: Mar 5 2008
 
Score 50%

Sorry for the big delay! Here you have the output:

http://pastebin.com/m39bfd0b3



-

 Add rating support

 
 by the7erm on: Feb 17 2008
 
Score 50%

def get_currently_playing(self):
"Gets the currently playing song from amarok."
new_status = self.config.get("AmarokPidgin", "status_message")

variables = ("album", "artist", "genre", "title", "track", "rating")
for var in variables:
if not ("$" + var) in new_status:
continue

value = getoutput("dcop amarok player %s 2> /dev/null" % var)
if var == 'rating':
s = '*'
value = s*(int(value) / 2)
new_status = new_status.replace("$" + var, value)

return new_status


always tip the pizza guy he knows where you live.
Reply to this

goto page: prev   1  2  3  4  5  6  7  8 

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team