Skip to content

Commit

Permalink
Fix YouTube track data
Browse files Browse the repository at this point in the history
Thank you sedmelluq#687
  • Loading branch information
thedarkcolour authored Apr 7, 2022
1 parent c69457e commit 3332d1c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public static YoutubeTrackJsonData fromMainResult(JsonBrowser result) {
JsonBrowser playerInfo = NULL_BROWSER;
JsonBrowser playerResponse = NULL_BROWSER;

if (result.isMap()) {
playerInfo = result.get("player");
playerResponse = result.get("playerResponse");
}

for (JsonBrowser child : result.values()) {
if (child.isMap()) {
if (playerInfo.isNull()) {
Expand Down

0 comments on commit 3332d1c

Please sign in to comment.