Well this is embarrassing but not unexpected given my history with releases here
This commit is contained in:
parent
663f58d566
commit
47ccb4a145
@ -3,7 +3,6 @@ import { YouTubePlayList } from '../classes/Playlist';
|
|||||||
import { YouTubeChannel } from '../classes/Channel';
|
import { YouTubeChannel } from '../classes/Channel';
|
||||||
import { YouTube } from '..';
|
import { YouTube } from '..';
|
||||||
import { YouTubeThumbnail } from '../classes/Thumbnail';
|
import { YouTubeThumbnail } from '../classes/Thumbnail';
|
||||||
import { writeFileSync } from 'fs';
|
|
||||||
|
|
||||||
const BLURRED_THUMBNAILS = [
|
const BLURRED_THUMBNAILS = [
|
||||||
'-oaymwEpCOADEI4CSFryq4qpAxsIARUAAAAAGAElAADIQj0AgKJDeAHtAZmZGUI=',
|
'-oaymwEpCOADEI4CSFryq4qpAxsIARUAAAAAGAElAADIQj0AgKJDeAHtAZmZGUI=',
|
||||||
@ -48,7 +47,6 @@ export function ParseSearchResult(html: string, options?: ParseSearchInterface):
|
|||||||
const details =
|
const details =
|
||||||
json_data.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0]
|
json_data.contents.twoColumnSearchResultsRenderer.primaryContents.sectionListRenderer.contents[0]
|
||||||
.itemSectionRenderer.contents;
|
.itemSectionRenderer.contents;
|
||||||
writeFileSync('results.json', JSON.stringify(details));
|
|
||||||
for (const detail of details) {
|
for (const detail of details) {
|
||||||
if (hasLimit && results.length === options.limit) break;
|
if (hasLimit && results.length === options.limit) break;
|
||||||
if (!detail.videoRenderer && !detail.channelRenderer && !detail.playlistRenderer) continue;
|
if (!detail.videoRenderer && !detail.channelRenderer && !detail.playlistRenderer) continue;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user