@lazycatcloud/lzc-video-player 0.0.18 → 0.0.19

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.
@@ -74555,7 +74555,7 @@ function filenameByUrl(e) {
74555
74555
  throw "invalid netdisk file url";
74556
74556
  }
74557
74557
  function clearUrl(e) {
74558
- return e.startsWith("/") ? e.substring(1) : e;
74558
+ return e.startsWith("/") ? e.substring(1) : e.startsWith("%2F") ? e.substring(3) : e;
74559
74559
  }
74560
74560
  function useVideoPreview(e) {
74561
74561
  let t = /* @__PURE__ */ new Map(), r = !1;
@@ -74634,8 +74634,8 @@ function useSource(e) {
74634
74634
  }
74635
74635
  const d = e.currentSrc.bind(e);
74636
74636
  e.currentSrc = function() {
74637
- const b = d();
74638
- return isNetdiskSource(b) ? "/" + clearUrl(filenameByUrl(b)) : b;
74637
+ const b = decodeURI(d());
74638
+ return isNetdiskSource(b) ? "/" + clearUrl(decodeURIComponent(filenameByUrl(b))) : b;
74639
74639
  };
74640
74640
  const m = e.src.bind(e);
74641
74641
  function f(b) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-video-player",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/lzc-video-player.js",