Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pointless tidy up and add link to newer get_iplayer git repo

  • Loading branch information...
commit 99902b50cce20862d42adf224b754a3abe80e4bb 1 parent 1213880
david authored
Showing with 8 additions and 10 deletions.
  1. +8 −10 zeniplayer
View
18 zeniplayer
@@ -1,11 +1,13 @@
#!/bin/sh
-#echo "$@"
-get_iplayer -f "$@" | zenity --window-icon=/usr/share/icons/hicolor/48x48/apps/iplayer.png --progress --text="Getting List of Shows from BBC" --title="Processing" --pulsate --auto-close
+# probably the best fork of get_iplayer ?
+# http://git.infradead.org/get_iplayer.git
+
+get_iplayer -f "$@" | zenity --window-icon=/usr/share/icons/hicolor/48x48/apps/iplayer.png --progress --text="Getting List of Shows from BBC" --title="Getting tv.cache" --pulsate --auto-close
getlist=$(
cat $HOME/.get_iplayer/tv.cache | sed -e '1d' | while read line; do
-all=$(echo "$line" | cut -d "|" -f 1,3,6,12 | sed 's/ /_/g' | sed 's/|/ /g')
+all=$(echo "$line" | cut -d "|" -f 1,3,6,12 | sed 's/ /_/g' | sed 's/|/ /g')
echo FALSE "$all"
done);
@@ -14,16 +16,12 @@ qqq=$(zenity --window-icon=/usr/share/icons/hicolor/48x48/apps/iplayer.png --wid
get=$(echo "$qqq" | cut -d "|" -f 1)
show=$(echo "$qqq" | cut -d "|" -f 2)
-echo $show
-echo $get
+#echo $show
+#echo $get
if [ "$get" = "" ];
-
then
echo "bye"
else
-
-get_iplayer 2>&1 --output="$HOME/Media" --modes=iphone,flashhigh,flashnormal,flashaac,flashaachigh,flashaacstd,flashaaclow,flashaudio,realaudio,wma --get $get | zenity --window-icon=/usr/share/icons/hicolor/48x48/apps/iplayer.png --text-info --title="Downloading $show"
-
+get_iplayer 2>&1 --output="$HOME/Media" --modes="flashhigh,flashnormal,iphone,flashaac,flashaachigh,flashaacstd,flashaaclow,flashaudio,realaudio,wma" --get $get | zenity --window-icon=/usr/share/icons/hicolor/48x48/apps/iplayer.png --text-info --title="Downloading $show"
fi
-
exit
Please sign in to comment.
Something went wrong with that request. Please try again.