make 0-length videos not shorts.

This commit is contained in:
piuvas 2024-12-21 12:55:44 -03:00
parent 41de28a698
commit 9efbac3d15
No known key found for this signature in database
GPG Key ID: 82743F52454C621D

View File

@ -498,7 +498,7 @@ final class InvidiousAPI: Service, ObservableObject, VideosAPI {
indexID: indexID, indexID: indexID,
live: json["liveNow"].boolValue, live: json["liveNow"].boolValue,
upcoming: json["isUpcoming"].boolValue, upcoming: json["isUpcoming"].boolValue,
short: length <= Video.shortLength, short: length <= Video.shortLength && length != 0.0,
publishedAt: publishedAt, publishedAt: publishedAt,
likes: json["likeCount"].int, likes: json["likeCount"].int,
dislikes: json["dislikeCount"].int, dislikes: json["dislikeCount"].int,