Skip to content

Commit

Permalink
fix(youtube.js): fix Cannot read properties of undefined (reading 'vi…
Browse files Browse the repository at this point in the history
…deoId')
  • Loading branch information
rankanin authored and 1715173329 committed Apr 29, 2023
1 parent 42e4663 commit 73f1537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provider/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const search = (info) => {
const matched =
initialData.contents.twoColumnSearchResultsRenderer
.primaryContents.sectionListRenderer.contents[0]
.itemSectionRenderer.contents[0];
.itemSectionRenderer.contents[1];
if (matched) return matched.videoRenderer.videoId;
else return Promise.reject();
});
Expand Down

0 comments on commit 73f1537

Please sign in to comment.