mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Search fixed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user