mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
fix(auto-thumbnail): [PKG-AUTO-THUMB-09] restore historical default calls
This commit is contained in:
1 parent
c4f5dcf17f
commit
f30c701d88
29 files changed
+3331
-44
No files matched your search
@@ -4,7 +4,7 @@ import extract from './extraction'
|
||||
import { readOptions } from './options'
|
||||
import createSession, { cleanupAll } from './session'
|
||||
|
||||
export default function artplayerPluginAutoThumbnail(option: ThumbnailOptions) {
|
||||
function artplayerPluginAutoThumbnail(option: ThumbnailOptions) {
|
||||
return async (art: ThumbnailHost): Promise<Result> => {
|
||||
const report = (error: unknown) => console.warn('ArtPlayer auto-thumbnail failed:', error)
|
||||
const session = createSession((config) => {
|
||||
@@ -45,3 +45,7 @@ export default function artplayerPluginAutoThumbnail(option: ThumbnailOptions) {
|
||||
return { name: 'artplayerPluginAutoThumbnail' }
|
||||
}
|
||||
}
|
||||
|
||||
artplayerPluginAutoThumbnail.default = artplayerPluginAutoThumbnail
|
||||
|
||||
export default artplayerPluginAutoThumbnail
|
||||
Reference in new issue
Block a user