From 273f08a1f5d9a73723b4d854d6af97e428cd7d51 Mon Sep 17 00:00:00 2001 From: Aleksoid Date: Tue, 17 Dec 2024 17:23:05 +1000 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B5=D0=BC=D0=BD=D0=BE=D0=B3=D0=BE=20?= =?UTF-8?q?=D0=B4=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=BD=20=D0=BF?= =?UTF-8?q?=D0=B0=D1=80=D1=81=D0=B5=D1=80=20yt-dlp=20-=20=D1=82=D0=B5?= =?UTF-8?q?=D0=BF=D0=B5=D1=80=D1=8C=20=D0=BE=D0=BD=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D0=B4=D0=B5=D1=80=D0=B6=D0=B8=D0=B2=D0=B0=D0=B5=D1=82=20=D0=B1?= =?UTF-8?q?=D0=BE=D0=BB=D1=8C=D1=88=D0=B5=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE?= =?UTF-8?q?=D0=B6=D0=BD=D1=8B=D1=85=20=D1=81=D1=81=D1=8B=D0=BB=D0=BE=D0=BA?= =?UTF-8?q?=20=D0=BD=D0=B0=20=D0=B2=D0=B8=D0=B4=D0=B5=D0=BE.=20=D0=9D?= =?UTF-8?q?=D0=BE=20=D1=82=D0=B0=D0=BA=20=D0=B6=D0=B5=20=D0=B8=20=D0=B2?= =?UTF-8?q?=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D1=8B=20=D1=81=D1=81=D1=8B?= =?UTF-8?q?=D0=BB=D0=BA=D0=B8=20=D0=BA=D0=BE=D1=82=D0=BE=D1=80=D1=8B=D0=B5?= =?UTF-8?q?=20=D0=BD=D0=B5=20=D0=BE=D1=82=D0=BA=D1=80=D0=BE=D1=8E=D1=82?= =?UTF-8?q?=D1=81=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/mplayerc/PlayerYouTubeDL.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/apps/mplayerc/PlayerYouTubeDL.cpp b/src/apps/mplayerc/PlayerYouTubeDL.cpp index 8884c41b4f..c0d47c7009 100644 --- a/src/apps/mplayerc/PlayerYouTubeDL.cpp +++ b/src/apps/mplayerc/PlayerYouTubeDL.cpp @@ -196,7 +196,10 @@ namespace YoutubeDL } CStringA vcodec; if (!getJsonValue(format, "vcodec", vcodec) || vcodec == "none") { - continue; + CStringA video_ext; + if (!getJsonValue(format, "video_ext", video_ext) || video_ext == "none") { + continue; + } } int height = 0; @@ -285,7 +288,9 @@ namespace YoutubeDL } CStringA vcodec; if (!getJsonValue(format, "vcodec", vcodec) || vcodec != "none") { - continue; + if (!getJsonValue(format, "video_ext", vcodec) || vcodec == "none") { + continue; + } } CStringA acodec; if (!getJsonValue(format, "acodec", acodec) || acodec == "none") {