Dont preview video if no format stream

This commit is contained in:
WardPearce
2024-09-17 21:59:05 +12:00
parent 408ec8f484
commit 95c14ec5c6
+4
View File
@@ -230,6 +230,10 @@
showVideoPreview = true;
try {
videoPreview = await getVideo(video.videoId);
if (videoPreview.formatStreams.length === 0) {
showVideoPreview = false;
}
if (videoPreview.hlsUrl) {
showVideoPreview = false;
videoPreview = null;