mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
Music property fixed
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user