mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-29 19:41:25 -08:00
Optimize chapter end time handling in artplayer-plugin-chapter
This commit is contained in:
1 parent
586375eeb0
commit
e11a2da806
5 files changed
+8
-3
No files matched your search
@@ -54,6 +54,10 @@ export default function artplayerPluginChapter(option = {}) {
|
||||
const chapter = chapters[i];
|
||||
const nextChapter = chapters[i + 1];
|
||||
|
||||
if (chapter.end === Infinity) {
|
||||
chapter.end = art.duration;
|
||||
}
|
||||
|
||||
if (
|
||||
typeof chapter.start !== 'number' ||
|
||||
typeof chapter.end !== 'number' ||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"license": "MIT",
|
||||
"name": "artplayer",
|
||||
"version": "5.1.5",
|
||||
"version": "5.1.6",
|
||||
"main": "dist/artplayer.js",
|
||||
"legacy": "dist/artplayer.legacy.js",
|
||||
"types": "types/artplayer.d.ts",
|
||||
|
||||
Reference in new issue
Block a user