Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

stream helper to setup a tunnel to my daap server

  • Loading branch information...
commit eee255a518954e3e6464029ba11d00a7b06b4b28 1 parent a97160b
@tsibley authored
Showing with 10 additions and 2 deletions.
  1. +1 −1  play-preset
  2. +9 −1 stream
View
2  play-preset
@@ -5,7 +5,7 @@ use warnings;
use List::MoreUtils qw(firstidx);
use IO::Socket::INET;
-my $sock = IO::Socket::INET->new('soundbridge.local:5555')
+my $sock = IO::Socket::INET->new('10.0.0.5:5555')
or die "Unable to bind to soundbridge: $!";
die "Huh?" unless $sock->getline =~ /roku: ready/;
View
10 stream
@@ -4,7 +4,7 @@ shift
src=${1:-spotify}
# This is ugly, but I don't want to refactor it right now
-if [[ $dst != "preset" ]]; then
+if [[ $dst != "preset" && $dst != "from" ]]; then
inputidx=$(find-sink-input "$src")
if [[ -z $inputidx ]]; then
@@ -42,6 +42,14 @@ case "$dst" in
move_to_sink 0
gconftool -s --type bool /system/pulseaudio/modules/raop-discover/enabled false
;;
+ from)
+ if [[ $src == "home" ]]; then
+ echo "Proxying to bloop; connect to localhost:3689"
+ banshee >/dev/null 2>&1 &
+ ssh -NL 3689:localhost:3689 bloop.zulutango.org
+ exit
+ fi
+ ;&
*)
echo "Uh, what?"
exit 1
Please sign in to comment.
Something went wrong with that request. Please try again.