File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { load } from 'cheerio' ;
2+
23import type { Route } from '@/types' ;
34import got from '@/utils/got' ;
45import { parseDate } from '@/utils/parse-date' ;
@@ -79,16 +80,16 @@ function renderDescription(video: VideoThumb): string {
7980 const views = video . views === undefined ? '' : video . views . toLocaleString ( ) ;
8081 const quality = video . isUHD ? '<span>4K</span>' : '' ;
8182
82- let meta = "" ;
83+ let meta = '' ;
8384
8485 if ( quality ) {
8586 meta += quality ;
8687 }
8788 if ( duration ) {
88- meta += `${ meta ? " · " : "" } <strong>Duration:</strong> ${ duration } ` ;
89+ meta += `${ meta ? ' · ' : '' } <strong>Duration:</strong> ${ duration } ` ;
8990 }
9091 if ( views ) {
91- meta += `${ meta ? " · " : "" } <strong>Views:</strong> ${ views } ` ;
92+ meta += `${ meta ? ' · ' : '' } <strong>Views:</strong> ${ views } ` ;
9293 }
9394
9495 return `
You can’t perform that action at this time.
0 commit comments