添加字幕本地预览

This commit is contained in:
Harvey committed 2019-11-14 14:00:24 +08:00
1 parent 2878705e72
commit 9cf1571ef8
15 files changed
+279 -81

No files matched your search

+2 -2
View File
@@ -19,10 +19,10 @@ export default class Subtitle {
return '';
}
switch(url) {
switch(url, name = 'unknown') {
const { i18n, notice } = this.art;
return this.init(url).then(blobUrl => {
notice.show(i18n.get('Switch subtitle'));
notice.show(`${i18n.get('Switch subtitle')}: ${name}`);
return blobUrl;
});
}