We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebf2105 commit 9dcd4d2Copy full SHA for 9dcd4d2
1 file changed
main-src/fetchYtStream.cjs
@@ -97,7 +97,16 @@ module.exports.searchYt = async (query) => {
97
const plainResults = []
98
99
for (const result of innertubeResults.results) {
100
- if (result.type !== 'Video') {
+ if (
101
+ result.type !== 'Video' ||
102
+ typeof result.video_id === 'undefined' ||
103
+ typeof result.title === 'undefined' ||
104
+ typeof result.title.text === 'undefined' ||
105
+ typeof result.author === 'undefined' ||
106
+ typeof result.author.name === 'undefined' ||
107
+ typeof result.length_text === 'undefined' ||
108
+ typeof result.length_text.text === 'undefined'
109
+ ) {
110
continue
111
}
112
0 commit comments