Extract artist badge for YouTube channels

This commit is contained in:
absidue
2021-10-31 12:19:06 +01:00
parent 76ab060d57
commit cf3d59508a
3 changed files with 8 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ export interface ChannelIconInterface {
export class YouTubeChannel {
name?: string;
verified?: boolean;
artist?: boolean;
id?: string;
type: 'video' | 'playlist' | 'channel';
url?: string;
@@ -26,6 +27,7 @@ export class YouTubeChannel {
this.name = data.name || null;
this.verified = !!data.verified || false;
this.artist = !!data.artist || false;
this.id = data.id || null;
this.url = data.url || null;
this.icon = data.icon || { url: null, width: 0, height: 0 };
@@ -52,6 +54,7 @@ export class YouTubeChannel {
return {
name: this.name,
verified: this.verified,
artist: this.artist,
id: this.id,
url: this.url,
iconURL: this.iconURL(),