Skip to content

Commit

Permalink
Fix parsing opts
Browse files Browse the repository at this point in the history
  • Loading branch information
Noarkhh committed Sep 2, 2024
1 parent cc53dc4 commit 8d743c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/boombox.ex
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ defmodule Boombox do
{nil, ".mp4", :output} -> {:mp4, value}
{scheme, _ext, :input} when scheme in ["rtmp", "rtmps"] -> {:rtmp, value}
{"rtsp", _ext, :input} -> {:rtsp, value}
{nil, ".m3u8", :output} -> {:hls, value}
{scheme, ".m3u8", :output} when scheme in [nil, "http", "https"] -> {:hls, value}
_other -> raise ArgumentError, "Unsupported URI: #{value} for direction: #{direction}"
end
|> then(&parse_opt!(direction, &1))
Expand Down

0 comments on commit 8d743c7

Please sign in to comment.