integrate ugoira converted into upload flow

This commit is contained in:
r888888888
2014-10-06 14:20:17 -07:00
parent 50730c6d0d
commit fb2219d4ac
7 changed files with 1167 additions and 54 deletions

View File

@@ -11,6 +11,11 @@ module Downloads
@tries = 0
end
def download_ugoira!
converter = PixivUgoiraConverter.new(source, file_path, :webm)
converter.process!
end
def download!
http_get_streaming do |response|
self.content_type = response["Content-Type"]