Project

General

Profile

Twitter tweets

Added by Jeff Allison over 2 years ago

Searched and can't find what I'm looking for. Winamp (WACUP) has a function that posts a tweet sharing what I am listening to. If there such a function for Audacious, and if not, would anyone have an idea as to how I might make such a thing? Thanks in advance.


Replies (4)

RE: Twitter tweets - Added by Michael Schwendt over 2 years ago

An old school implementation would be a script that runs "audtool current-song" and passes it to your favorite twitter command-line interface whenever there is a change. With some safety measures, of course, as to avoid a flood of tweets for example.

RE: Twitter tweets - Added by Jeff Allison over 2 years ago

Sounds promising. Thanks!

RE: Twitter tweets - Added by Jeff Allison about 2 years ago

Just in case anyone is in the least interested, here is a shell script to pass what's playing on Audacious to oysttyer and share on Twitter. Also gives a desktop notification. I use a desktop launcher at the moment, but may do a cron in the future.

#!/bin/sh

  1. variable declarations and settings
    check=$(audtool --playback-status)
    MySong=$(audtool --current-song-tuple-data title);
    MyAlbum=$(audtool --current-song-tuple-data album);

#Check if Audacious is running

if [ ${check} == "playing" ];

then
Post="Groovin' to '"${MySong}"' from '"${MyAlbum}"'"

echo ${Post} | oysttyer status=
MESSAGE="${Post} Tweeted"

else
echo ${check} "Nothing Playing"

MESSAGE="${check} - Nothing Tweeted"

fi

notify-send -u critical -i face-smile "$MESSAGE"

RE: Twitter tweets - Added by Jeff Allison about 2 years ago

Oops, didn't need the == in the "if" statement.

    (1-4/4)