1 import { Component, Input, OnInit } from '@angular/core'
2 import { HooksService } from '@app/core'
3 import { VideoDetails } from '@app/shared/shared-main'
5 type PluginMetadata = {
13 selector: 'my-video-attributes',
14 templateUrl: './video-attributes.component.html',
15 styleUrls: [ './video-attributes.component.scss' ]
17 export class VideoAttributesComponent implements OnInit {
18 @Input() video: VideoDetails
20 pluginMetadata: PluginMetadata[] = []
22 constructor (private hooks: HooksService) { }
25 this.pluginMetadata = await this.hooks.wrapObject(
28 'filter:video-watch.video-plugin-metadata.result',
34 return this.video.channel.host
38 if (!this.video || Array.isArray(this.video.tags) === false) return []
40 return this.video.tags