-
 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    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


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

Simple Now Playing script

   0.6.1  

Amarok 2.0 Script

Score 56%
Downloads:  183
Submitted:  Sep 27 2009
Updated:  Dec 23 2012

Description:

This is a very simple Now Playing script which outputs the data to your homedir so it may be parsed by any other program. The output format is based from an Amarok 1.x script written by Daniel Dormann and the script itself was modified from the SkypeNowPlaying script by tuwe.

Known limitation: If playing, when Amarok exits the script is unaware. No known Amarok 'exit' trigger.




Changelog:

0.6.1 - Changed script filename
0.6 - Fixed leftover debug line
0.5 - Fixed weird track length issue
0.4 - Added status check to onTrackChange to update for a small regression in Amarok 2.2.2 (onTrackChange called on startup now regardless of if Amarok is playing or not)
0.3 - Fixed some cover art information, repeatPlaylist repeatTrack and randomMode called from Amarok now, were hard coded
0.2 - Fixed homedir path, thanks Knoellchen!
0.1 - Original Release




LicenseGPL
Source(SimpleNowPlaying.amarokscript.tar.bz2)
Send to a friend
Subscribe
Other  Content  from khaytsus
Report inappropriate content



-

 Problem with Amarok 2.2.2

 
 by Oceanwaves on: Jan 12 2010
 
Score 50%

Hi, I installed Amarok 2.2.2 today and found that SimpleNowPlaying 0.2 now reports Amarok is playing even if it's not. I just start Amarok 2.2.2 and ~/nowPlaying.txt looks like this:

isPlaying: true (should be false)
status: 0
repeatTrack: 0
repeatPlaylist: 0
randomMode: 0
artist:
title:
track: 0
album:
length: 00:00
genre:
year:
comment:
bitrate: 0
type:
samplerate: 0
cover:
score: 0
rating: 0
playcounter: 0

Oceanwaves


Reply to this

-

 Re: Problem with Amarok 2.2.2

 
 by khaytsus on: Jan 13 2010
 
Score 50%

Agreed, Amarok is now calling onTrackChange on startup which is new. I am updating the script and will upload it shortly.


Reply to this

-

 Re: Re: Problem with Amarok 2.2.2

 
 by Oceanwaves on: Jan 13 2010
 
Score 50%

Wow, you're fast!

Thanks, Script is working fine again!

BTW: I noticed huge differences in the track length reported by Amarok vs. your script, e.g. Amarok (correctly) reports 2:57 for a track while the script reports

length: 01:10:00

No problem for me since I don't need the track length at the moment, just wanted to mention it.

Thanks again,

Oceanwaves


Reply to this

-

 Re: Re: Re: Problem with Amarok 2.2.2

 
 by khaytsus on: Jan 14 2010
 
Score 50%

Doh, you're right.... I wonder if it's been like that all along or this is new? New version posting now..


Reply to this

-

 Re: Re: Re: Re: Problem with Amarok 2.2.2

 
 by Oceanwaves on: Jan 14 2010
 
Score 50%

Ahem...v0.5 looks completely broken here. Even while Amarok 2.2.2 is playing a track it still says "isPlaying: false" :-(.

Oceanwaves


Reply to this

-

 Re: Re: Re: Re: Re: Problem with Amarok 2.2.2

 
 by khaytsus on: Jan 14 2010
 
Score 50%

Sorry everyone, I'm a dufus. I apparently didn't restart the script for my final regression, I removed a variable I was using for debugging and didn't remove the output line for it. Fixed, please update.


Reply to this

-

 Re: Re: Re: Re: Re: Re: Problem with Amarok 2.2.2

 
 by kisrokus on: Jan 23 2010
 
Score 50%

I am sorry, where can I get the latest version? Because this one i can download here: 112728-SimpleNowPlaying.tar.gz

And this has version 0.5 in it... and correct me if I am wrong but 0.6 is now the fixed version.



-

 Updated version in script

 
 by khaytsus on: Jan 23 2010
 
Score 50%

I apparently didn't increment the version number in the script, so if it's working for you now then don't worry about re-downloading.


Reply to this

-

 Re: Updated version in script

 
 by kisrokus on: Jan 28 2010
 
Score 50%

no, its not. I get this in the TXT:

isPlaying: false
status: 2


Reply to this

-

 Re: Re: Updated version in script

 
 by khaytsus on: Jan 28 2010
 
Score 50%

I have downloaded the script on a test machine with no Amarok or script installed before, just to make sure I wasn't using the wrong script etc.. All is working for me.

Can you please explain the steps to where you're getting an incorrect status?


Reply to this

-

 Re: Re: Re: Updated version in script

 
 by kisrokus on: Jan 29 2010
 
Score 50%

So the thing is that I want use the in kopete the "now listening to" feature.

Is this script helping kopete as well or just creating the ~/nowPlaying.txt

Probably my amarok is bugged. What do you think?

Amarok v 2.2.1.90
KDE 4.3.1 "release 6"
openSUSE 11.2


Reply to this

-

 Re: Re: Re: Re: Updated version in script

 
 by khaytsus on: Jan 29 2010
 
Score 50%

The script creates the file, it's up to other programs to consume it. The reason I created it was that I had several programs which did consume that file.

As for why your Amarok isn't working, honestly I don't know. Amarok 2.2.2 here.


Reply to this

-

 script name

 
 by rascal58 on: May 5 2012
 
Score 50%

please name script correctly so Amarok script manager can select it.
Script current name: 112728-SimpleNowPlaying.tar.bz2
suggested name: 112728-SimpleNowPlaying.amarokscript.tar.bz2
with this change the script is found and installed. Otherwise the script works !


Reply to this

-

 Re: script name

 
 by khaytsus on: Dec 23 2012
 
Score 50%

Sorry about the LONG delay on fixing this, I lost track of the email. I've uploaded 0.6.1 which the only change is the version and the filename. Hopefully this works as expected now.


Reply to this

Add commentBack






-
openDesktop.org Facebook App




 
 
 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
Facebook App
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-2014 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