[#2497] Added missing alias, removed legacy :adapter option specification for HTTP.get/_.
This commit is contained in:
parent
4ee99dafcc
commit
68a74d6659
4 changed files with 5 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ defmodule Pleroma.Helpers.MediaHelper do
|
|||
def image_resize(url, options) do
|
||||
with executable when is_binary(executable) <- System.find_executable("convert"),
|
||||
{:ok, args} <- prepare_image_resize_args(options),
|
||||
{:ok, env} <- HTTP.get(url, [], adapter: [pool: :media]),
|
||||
{:ok, env} <- HTTP.get(url, [], pool: :media),
|
||||
{:ok, fifo_path} <- mkfifo() do
|
||||
args = List.flatten([fifo_path, args])
|
||||
run_fifo(fifo_path, env, executable, args)
|
||||
|
|
@ -62,7 +62,7 @@ defmodule Pleroma.Helpers.MediaHelper do
|
|||
|
||||
def video_framegrab(url) do
|
||||
with executable when is_binary(executable) <- System.find_executable("ffmpeg"),
|
||||
{:ok, env} <- HTTP.get(url, [], adapter: [pool: :media]),
|
||||
{:ok, env} <- HTTP.get(url, [], pool: :media),
|
||||
{:ok, fifo_path} <- mkfifo(),
|
||||
args = [
|
||||
"-y",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue