内置插件默认修改为关闭

This commit is contained in:
zhw2590582 committed 2019-09-08 12:52:07 +08:00
1 parent b2f30aa030
commit d0939d5b65
9 files changed
+27 -19

No files matched your search

+4 -4
View File
@@ -1,5 +1,5 @@
import { errorHandle, hasOwnProperty } from '../utils';
import subtitle from './subtitle';
import subtitleOffset from './subtitleOffset';
import localPreview from './localPreview';
import miniProgressBar from './miniProgressBar';
import autoPip from './autoPip';
@@ -11,8 +11,8 @@ export default class Plugins {
const { option } = art;
if (option.subtitle.url) {
this.add(subtitle);
if (option.subtitle.url && option.subtitleOffset) {
this.add(subtitleOffset);
}
if (!option.isLive && option.miniProgressBar) {
@@ -23,7 +23,7 @@ export default class Plugins {
this.add(localPreview);
}
if (option.pip && option.autoPip) {
if (option.autoPip) {
this.add(autoPip);
}
@@ -40,10 +40,10 @@ function settingMix(art) {
};
}
export default function subtitle(art) {
export default function subtitleOffset(art) {
const { clamp } = art.constructor.utils;
const { setting, notice, template, i18n, player } = art;
i18n.update({
'zh-cn': {
'Subtitle offset time': '字幕偏移时间',