1
0
mirror of https://github.com/yattee/yattee.git synced 2025-01-09 19:10:32 +05:30

Merge pull request #849 from derspyy/0length

Stop making videos with unknown length shorts.
This commit is contained in:
Arkadiusz Fal 2024-12-26 18:57:13 +01:00 committed by GitHub
commit 7f3b3ac0ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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