mirror of
https://github.com/d-fi/d-fi-core.git
synced 2025-07-27 15:44:26 +02:00
fix ci
This commit is contained in:
parent
c6f3527fba
commit
4ed0d73894
@ -19,10 +19,11 @@ const getTrack = async (id: string) => {
|
||||
|
||||
const data = JSON.parse(json).contents.twoColumnWatchNextResults.results.results.contents[1]
|
||||
.videoSecondaryInfoRenderer.metadataRowContainer.metadataRowContainerRenderer;
|
||||
const song = data.rows?.find(
|
||||
if (data.rows && data.rows.length > 0) {
|
||||
const song = data.rows.find(
|
||||
(row: any) => row.metadataRowRenderer && row.metadataRowRenderer.title.simpleText === 'Song',
|
||||
);
|
||||
const artist = data.rows?.find(
|
||||
const artist = data.rows.find(
|
||||
(row: any) => row.metadataRowRenderer && row.metadataRowRenderer.title.simpleText === 'Artist',
|
||||
);
|
||||
|
||||
@ -38,6 +39,7 @@ const getTrack = async (id: string) => {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user