aboutsummaryrefslogtreecommitdiffstats
path: root/stewardess.rb
diff options
context:
space:
mode:
authorBrian Jordan2012-04-26 01:23:32 -0400
committerBrian Jordan2012-04-26 01:23:32 -0400
commit3a5c1b91af4dde0e7270d21aca356133e5f4d8d0 (patch)
treee1aa04d9388d43d595f6c4e9cbc8fee7450f4ad1 /stewardess.rb
parent0553e3ffa31633ec8b5c42fc5dbacb8b3b3bf448 (diff)
downloadvideo-tuneup-stewardess-3a5c1b91af4dde0e7270d21aca356133e5f4d8d0.tar.bz2
add earworm, outline of stewardess.rb approach
Diffstat (limited to 'stewardess.rb')
-rw-r--r--stewardess.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/stewardess.rb b/stewardess.rb
index 2beb9c8..476546c 100644
--- a/stewardess.rb
+++ b/stewardess.rb
@@ -15,6 +15,12 @@ post '/blend/:filename' do
File.open(filename, 'wb') do |file|
file.write(datafile[:tempfile].read)
end
+
+ # Run something like:
+ # length = params[:length] # Desired length (in seconds)
+ # [console] python src/earworm.py -d #{length} -l #{filename}
+ # send_file("*.mp3")
+ # [console] rm *.mp3
send_file('up/thefile.jpg')
end