mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
Extract artist badge for YouTube channels
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user