Skip to content

Commit

Permalink
Update uploader to support more extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
wfarr committed Mar 25, 2012
1 parent 2e490cc commit caaf29a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/api/system.rb
Expand Up @@ -25,9 +25,9 @@ class App < Sinatra::Base
tmpfile = file[:tempfile]
name = file[:filename]

# iTunes needs a filetype it likes, so fuck it, .mp3 it.
system "mv", tmpfile.path, tmpfile.path + '.mp3'
system "./script/add-to-itunes", tmpfile.path + '.mp3'
sane_path = File.join(File.dirname(tmpfile), name)
system "mv", tmpfile.path, sane_path
system "./script/add-to-itunes", sane_path
end

true
Expand Down

0 comments on commit caaf29a

Please sign in to comment.