Skip to content

Commit

Permalink
Немного доработан парсер yt-dlp - теперь он поддерживает больше возмо…
Browse files Browse the repository at this point in the history
…жных ссылок на видео. Но так же и возможны ссылки которые не откроются.
  • Loading branch information
Aleksoid1978 committed Dec 17, 2024
1 parent 9407d3a commit 273f08a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/apps/mplayerc/PlayerYouTubeDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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") {
Expand Down

0 comments on commit 273f08a

Please sign in to comment.