mioku-plugin-media 2.1.0 → 2.1.1
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/package.json
CHANGED
|
@@ -49,7 +49,7 @@ export class DouyinResolver implements PlatformResolver {
|
|
|
49
49
|
detail.video?.origin_cover?.url_list?.[0] ||
|
|
50
50
|
detail.video?.dynamic_cover?.url_list?.[0] ||
|
|
51
51
|
"";
|
|
52
|
-
const duration = detail.duration;
|
|
52
|
+
const duration = detail.duration ? Math.floor(detail.duration / 1000) : undefined;
|
|
53
53
|
|
|
54
54
|
let videoUrl = "";
|
|
55
55
|
|
|
@@ -87,7 +87,7 @@ export class KuaishouResolver implements PlatformResolver {
|
|
|
87
87
|
const author = authorInfo.name || "未知作者";
|
|
88
88
|
const description = photo.caption || "";
|
|
89
89
|
const coverUrl = photo.coverUrl || "";
|
|
90
|
-
const duration = photo.duration;
|
|
90
|
+
const duration = photo.duration ? Math.floor(photo.duration / 1000) : undefined;
|
|
91
91
|
|
|
92
92
|
let videoUrl = "";
|
|
93
93
|
|