UseParseYoutubeRss
katanakit-js / useParseYoutubeRss
Function: useParseYoutubeRss()
Section titled “Function: useParseYoutubeRss()”function useParseYoutubeRss(xml): { channelTitle?: string; description: string; durationSeconds?: number; embedUrl: string; id: string; publishedAt: string; thumbnail: string; thumbnails: { default: string; high: string; medium: string; }; title: string; url: string; viewCount?: number;}[];Defined in: core/services/youtube.service.ts:534
Parses a YouTube channel RSS feed into normalized videos.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
xml |
string |
Returns
Section titled “Returns”{
channelTitle?: string;
description: string;
durationSeconds?: number;
embedUrl: string;
id: string;
publishedAt: string;
thumbnail: string;
thumbnails: {
default: string;
high: string;
medium: string;
};
title: string;
url: string;
viewCount?: number;
}[]