We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 464a595 commit b62eb2bCopy full SHA for b62eb2b
lib/pinchflat/yt_dlp/media.ex
@@ -151,7 +151,7 @@ defmodule Pinchflat.YtDlp.Media do
151
#
152
# These don't fail if duration or aspect_ratio are missing
153
# due to Elixir's comparison semantics
154
- response["duration"] <= 60 && response["aspect_ratio"] <= 0.85
+ response["duration"] <= 180 && response["aspect_ratio"] <= 0.85
155
end
156
157
test/pinchflat/yt_dlp/media_test.exs
@@ -269,7 +269,7 @@ defmodule Pinchflat.YtDlp.MediaTest do
269
response = %{
270
"original_url" => "https://www.youtube.com/watch?v=TiZPUDkDYbk",
271
"aspect_ratio" => 0.5,
272
- "duration" => 59,
+ "duration" => 150,
273
"upload_date" => "20210101"
274
}
275
0 commit comments