Browse files

Change starting time to 5mins after and reduce length to 3 hours

  • Loading branch information...
1 parent 83824d3 commit 8e13a1244e8692cb47412e5812cd2f752d40b4cf @mattmccormick committed Feb 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 leafs.rb
  2. +1 −1 streamripper.sh
View
2 leafs.rb
@@ -29,7 +29,7 @@
full_opp = 'vs ' + opponent[2..-1]
end
- if diff.abs < 60 # if at starting time
+ if diff.abs < 600 # if at starting time
puts "Running streamripper\n"
system("/bin/sh #{file_dir}/streamripper.sh '#{full_opp}'&")
end
View
2 streamripper.sh
@@ -1,6 +1,6 @@
DATE=`date -d '-6 hours' +%Y-%m-%d` # because server is on UTC time
DIR_FILES='/home/matt/leafs/'
-streamripper http://6703.live.streamtheworld.com/CFMJAMAAC -d $DIR_FILES -l 11400 -isAT -k 0 -a $DATE.aac
+streamripper http://6703.live.streamtheworld.com/CFMJAMAAC -d $DIR_FILES -l 10800 -isAT -k 0 -a $DATE.aac
ffmpeg -v 5 -y -i "${DIR_FILES}/${DATE}.aac.mp3" -acodec libmp3lame -ac 2 -ab 96k -metadata title="Toronto $1 - ${DATE}" -metadata author="AM 640 Toronto" "${DIR_FILES}/${DATE}.mp3";
ln -s $DIR_FILES/$DATE.mp3 /home/matt/www/mattmccormick.ca/public/leafs/
DIR_SCRIPT="$( cd "$( dirname "$0" )" && pwd )"

0 comments on commit 8e13a12

Please sign in to comment.