Well this is embarrassing but not unexpected given my history with releases here

This commit is contained in:
absidue 2022-02-03 22:34:59 +01:00
parent 663f58d566
commit 47ccb4a145

View File

@ -3,7 +3,6 @@ import { YouTubePlayList } from '../classes/Playlist';
import { YouTubeChannel } from '../classes/Channel';
import { YouTube } from '..';
import { YouTubeThumbnail } from '../classes/Thumbnail';
import { writeFileSync } from 'fs';
const BLURRED_THUMBNAILS = [
'-oaymwEpCOADEI4CSFryq4qpAxsIARUAAAAAGAElAADIQj0AgKJDeAHtAZmZGUI=',
@ -48,7 +47,6 @@ export function ParseSearchResult(html: string, options?: ParseSearchInterface):
const details =
json_data.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0]
.itemSectionRenderer.contents;
writeFileSync('results.json', JSON.stringify(details));
for (const detail of details) {
if (hasLimit && results.length === options.limit) break;
if (!detail.videoRenderer && !detail.channelRenderer && !detail.playlistRenderer) continue;