Update youtube shorts detection to support youtube pants

This commit is contained in:
Kieran Eglin 2025-02-20 15:30:29 -08:00
parent 464a595045
commit cb7f39eaea
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -151,7 +151,7 @@ defmodule Pinchflat.YtDlp.Media do
#
# These don't fail if duration or aspect_ratio are missing
# due to Elixir's comparison semantics
response["duration"] <= 60 && response["aspect_ratio"] <= 0.85
response["duration"] <= 180 && response["aspect_ratio"] <= 0.85
end
end