This commit is contained in:
r888888888
2014-10-09 14:26:33 -07:00
parent 5bc0bb88cf
commit 0a61aac231
9 changed files with 18 additions and 20 deletions

View File

@@ -11,11 +11,6 @@ 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"]
@@ -27,7 +22,7 @@ module Downloads
end
def before_download(url, headers)
Strategies::Base.strategies.each do |strategy|
RewriteStrategies::Base.strategies.each do |strategy|
url, headers = strategy.new.rewrite(url, headers)
end