@dan-uni/dan-any 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -3
- package/dist/index.umd.min.js +10 -3
- package/package.json +4 -5
- package/src/ass-gen/__tests__/898651903.xml.ass +1498 -1374
- package/src/ass-gen/config.ts +2 -2
- package/src/index.ts +4 -1
package/src/ass-gen/config.ts
CHANGED
package/src/index.ts
CHANGED
|
@@ -237,6 +237,8 @@ export class UniPool {
|
|
|
237
237
|
return this.toArtplayer()
|
|
238
238
|
case 'ddplay.json':
|
|
239
239
|
return this.toDDplay()
|
|
240
|
+
case 'common.ass':
|
|
241
|
+
return this.toASS()
|
|
240
242
|
default:
|
|
241
243
|
throw new Error('unknown format or unsupported now!')
|
|
242
244
|
}
|
|
@@ -451,7 +453,8 @@ export class UniPool {
|
|
|
451
453
|
return parseAssRawField(ass)
|
|
452
454
|
}
|
|
453
455
|
toASS(options: AssGenOptions = { substyle: {} }): string {
|
|
454
|
-
|
|
456
|
+
const fn = this.shared.FCID
|
|
457
|
+
return generateASS(this, { filename: fn, title: fn, ...options })
|
|
455
458
|
}
|
|
456
459
|
}
|
|
457
460
|
|