Search fixed

This commit is contained in:
killer069
2021-10-05 11:09:41 +05:30
parent 0874f716dc
commit f30c4f458b
3 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ export function ParseSearchResult(html: string, options?: ParseSearchInterface):
.itemSectionRenderer.contents;
for (let i = 0; i < details.length; i++) {
if (typeof options.limit === 'number' && options.limit > 0 && results.length === options.limit) break;
if(!details[i].videoRenderer && !details[i].channelRenderer && !details[i].playlistRenderer) continue;
if (!details[i].videoRenderer && !details[i].channelRenderer && !details[i].playlistRenderer) continue;
if (options.type === 'video') {
const parsed = parseVideo(details[i]);
if (!parsed) continue;