Wednesday, March 19, 2008

AppleTV - airtunes from linux with amarok

1. Fix the "Shouter" plugin for Amarok in "/home/babil/.kde/share/apps/amarok/scripts/shouter/"

Playlist.py ::
if current > total : current = total
if float(total) == 0:
raise ShouterExceptions.amarok_not_playing_error

Globals.py ::
# coding=Latin-1

Bash ::
  • ln -s /usr/share/apps/amarok/scripts/common/Zeroconf.py /home/babil/.kde/share/apps/amarok/scripts/shouter/Zeroconf.py

  • ln -s /usr/share/apps/amarok/scripts/common/Publisher.py /home/babil/.kde/share/apps/amarok/scripts/shouter/Publisher.py

2. Run the "Shouter" plugin in Amarok "Tools/Script Manager"

3. Create a Playlist in nito with a entry like "http://192.168.0.5:8000/amarok" . Nito playlists are saved in "/Users/frontrow/Library/Application Support/nito/playlists"

4. Or run mplayer from ssh command line like this:

"/System/Library/CoreServices/Finder.app/Contents/PlugIns/nitoTV.frappliance/Contents/Resources/mplayer http://192.168.0.5:8000/amarok -autosync 30"