mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
feat(saveVideoMetadata): switch for video stat
This commit is contained in:
parent
23eecd4e4e
commit
91d580bac7
@ -85,7 +85,7 @@ async function generateFFMetadata(aid: string = unsafeWindow.aid, cid: string =
|
||||
console.debug(data)
|
||||
|
||||
const {
|
||||
options: { fieldsMode, timeFormat },
|
||||
options: { fieldsMode, timeFormat, includeStat },
|
||||
} = getComponentSettings<Options>(componentName)
|
||||
|
||||
const generated = new Date()
|
||||
@ -147,8 +147,7 @@ async function generateFFMetadata(aid: string = unsafeWindow.aid, cid: string =
|
||||
),
|
||||
)
|
||||
}
|
||||
// TODO option for includeStat
|
||||
if (true) {
|
||||
if (includeStat) {
|
||||
const s = basic.stat
|
||||
lines.push(
|
||||
ff('stat_view', s.view),
|
||||
|
||||
@ -26,6 +26,10 @@ export const options = defineOptionsMetadata({
|
||||
displayName: '将番剧的「跳过头尾」转换为章节', //
|
||||
defaultValue: true,
|
||||
},
|
||||
includeStat: {
|
||||
displayName: '包含状态数(播放数、点赞数等)', //
|
||||
defaultValue: true,
|
||||
},
|
||||
})
|
||||
|
||||
export type Options = OptionsOfMetadata<typeof options>
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
import { EpisodeInfo } from '@/components/video/video-info'
|
||||
import { TimeFormat } from './options'
|
||||
import { Tag, ViewPoint } from './types'
|
||||
|
||||
export function escape(x: any) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user