You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
575 B
TypeScript
20 lines
575 B
TypeScript
import { MVideo } from '@server/types/models/video/video.js'
|
|||
import { TagsHtml } from './tags-html.js'
|
|||
import { MVideoPlaylist } from '@server/types/models/video/video-playlist.js'
|
|||
|
|||
export class CommonEmbedHtml {
|
|||
|
|||
static buildEmptyEmbedHTML (options: {
|
|||
html: string
|
|||
playlist?: MVideoPlaylist
|
|||
video?: MVideo
|
|||
}) {
|
|||
const { html, playlist, video } = options
|
|||
|
|||
let htmlResult = TagsHtml.addTitleTag(html)
|
|||
htmlResult = TagsHtml.addDescriptionTag(htmlResult)
|
|||
|
|||
return TagsHtml.addTags(htmlResult, { forbidIndexation: true }, { playlist, video })
|
|||
}
|
|||
}
|