Skip to content

Commit

Permalink
Music property fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
iim-ayush committed Jan 7, 2022
1 parent bc77b70 commit a651979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion play-dl/YouTube/utils/extractor.ts
Expand Up @@ -211,7 +211,8 @@ export async function video_basic_info(url: string, options: InfoOptions = {}):
music.push({});
music[music.length - 1].song =
x.metadataRowRenderer.contents[0].simpleText ?? x.metadataRowRenderer.contents[0]?.runs?.[0]?.text;
} else
} else if (music.length === 0) return;
else
music[music.length - 1][x.metadataRowRenderer.title.simpleText.toLowerCase()] =
x.metadataRowRenderer.contents[0].simpleText ?? x.metadataRowRenderer.contents[0]?.runs?.[0]?.text;
});
Expand Down

0 comments on commit a651979

Please sign in to comment.