Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
birabittoh committed Jan 15, 2024
1 parent 413c092 commit 5f9d33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invidious/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (c *Client) fetchVideo(videoId string) (*Video, int) {
res.Expire = time.Unix(expireTimestamp, 0)

vb, i := c.findCompatibleFormat(res)
if vb.Length <= 0 {
if i < 0 {
logger.Warn("No compatible formats found for video.")
res.Url = ""
} else {
Expand Down

0 comments on commit 5f9d33f

Please sign in to comment.