Spaces:
Running
Running
Commit ·
f23e96c
1
Parent(s): eda2ac9
UPDA
Browse files- utils/AvatarRender.js +2 -1
utils/AvatarRender.js
CHANGED
|
@@ -13,7 +13,8 @@ export class AvatarRenderer {
|
|
| 13 |
// make sure the caption files are in ass format and exist
|
| 14 |
for (let captionFile of captionFiles) {
|
| 15 |
if (!captionFile || !captionFile.endsWith('.ass')) {
|
| 16 |
-
|
|
|
|
| 17 |
}
|
| 18 |
}
|
| 19 |
return true;
|
|
|
|
| 13 |
// make sure the caption files are in ass format and exist
|
| 14 |
for (let captionFile of captionFiles) {
|
| 15 |
if (!captionFile || !captionFile.endsWith('.ass')) {
|
| 16 |
+
console.error('Invalid caption file format. Expected .ass files for item ' + (captionFiles.indexOf(captionFile) + 1) + '. Did you forget to use `caption` plugin?');
|
| 17 |
+
return false
|
| 18 |
}
|
| 19 |
}
|
| 20 |
return true;
|