Skip to content

Commit

Permalink
Proper check for IsApproxFilesize
Browse files Browse the repository at this point in the history
  • Loading branch information
legend2k committed May 17, 2024
1 parent 8cbc53e commit 8546c82
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions YoutubeApp/Media/Youtube.cs
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,7 @@ private List<Variant> GenerateVariants(IEnumerable<VideoInfoFormat> formats)
ACodec = audioFormat.acodec,
Abr = (float)audioFormat.abr,
Filesize = (long)filesize,
IsApproxFilesize = videoFormat.filesize_approx is not null ||
audioFormat.filesize_approx is not null,
IsApproxFilesize = videoFormat.filesize is null || audioFormat.filesize is null,
});
}
else
Expand Down

0 comments on commit 8546c82

Please sign in to comment.