New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插件无法使用,目测在获得地址过程中出现问题 #580

Closed
louislou123 opened this Issue Mar 22, 2018 · 10 comments

Comments

Projects
None yet
6 participants
@louislou123
Copy link

louislou123 commented Mar 22, 2018

您好,我一直在用您的插件,但是今天不能用了。在网盘里的所有东西在点击‘导出下载’后会显示
‘正在获取下载地址’,随后就什么也不发生了。目测是获取地址过程中出现问题,因此没有下载内容地址。
我在网上找到另一个插件,http://www.zdfans.com/7088.html,中的描述说
‘2018/03/22今天凌晨度盘服务器上改了css样式和js文件,目前所有脚本全挂!’是否是这个问题的原因呢?如果是百度方面的修改,能否问下这个问题是否有望修复?
我一直在用您的插件,对我帮助非常大。很感谢您开发这样的插件,谢谢您!
另,本人重新安装了插件问题没有解决,因此插件,浏览器与系统都是最新的。

请确保以下几点:

  1. 已经阅读过README
  2. 尝试安装最新版本插件
  3. 尝试清空浏览器缓存
  4. 尝试卸载插件后重新安装

发起 Issue 时,请提供:

  1. 您下载的内容地址
  2. 插件版本号,浏览器版本号,系统版本号
  3. 列举出现问题的详细步骤
  4. 描述能否复现问题

不符合上述条件的Issue将被无理由关闭

@CaiPeterCai

This comment has been minimized.

Copy link

CaiPeterCai commented Mar 22, 2018

对的,打开Consoel可以看到发生以下错误
home.js:1 Uncaught TypeError: Cannot read property 'split' of null
at t.value (home.js:1)
at t.value (home.js:1)
at t.value (home.js:1)
at t.value (home.js:1)
at home.js:1
value @ home.js:1
value @ home.js:1
value @ home.js:1
value @ home.js:1
(anonymous) @ home.js:1
postMessage (async)
(anonymous) @ baidu.js:1
postMessage (async)
value @ home.js:1
(anonymous) @ home.js:1

@CaiPeterCai

This comment has been minimized.

@markx

This comment has been minimized.

Copy link

markx commented Mar 23, 2018

似乎是URL里面hash有了改动,更新一下parse的方法就好了。

我这样改的,不知道会不会有别的问题。临时应付一下。

diff --git a/chrome/src/js/lib/core.js b/chrome/src/js/lib/core.js
index 1420eb0..9293176 100644
--- a/chrome/src/js/lib/core.js
+++ b/chrome/src/js/lib/core.js
@@ -36,7 +36,7 @@ class Core {
   }
   getHashParameter (name) {
     const hash = window.location.hash
-    const paramsString = hash.substr(1)
+    const paramsString = hash.substr(6)
     const searchParams = new URLSearchParams(paramsString)
     return searchParams.get(name)
   }```
@acgotaku

This comment has been minimized.

Copy link
Owner

acgotaku commented Mar 23, 2018

貌似我的版本还是没有更新? 你们可以载入开发版看看出错位置

@CaiPeterCai

This comment has been minimized.

Copy link

CaiPeterCai commented Mar 23, 2018

或者release里面/BaiduExporter/chrome/release/js/home.js
var t=window.location.hash.substr(1)
改成
var t=window.location.hash.substr(6)

@dantmnf

This comment has been minimized.

Copy link

dantmnf commented Mar 23, 2018

diff --git a/chrome/src/js/home.js b/chrome/src/js/home.js
index 2ddbc17..39c7cd5 100644
--- a/chrome/src/js/home.js
+++ b/chrome/src/js/home.js
@@ -77,7 +77,7 @@ class Home extends Downloader {
     window.postMessage({ type: 'getSelected' }, location.origin)
   }
   getPrefixLength () {
-    const path = Core.getHashParameter('list/path') || Core.getHashParameter('path')
+    const path = Core.getHashParameter('list/path') || Core.getHashParameter('path') || Core.getHashParameter('/all?path')
     const fold = Core.getConfigData('fold')
     if (fold === -1 || path === '/') {
       return 1
@eckl

This comment has been minimized.

Copy link

eckl commented Mar 24, 2018

抱歉,我搞错了,FF扩展是借用您的代码,谢谢。

@acgotaku

This comment has been minimized.

Copy link
Owner

acgotaku commented Mar 25, 2018

已经修复

@CaiPeterCai

This comment has been minimized.

Copy link

CaiPeterCai commented Mar 25, 2018

@acgotaku 还有一个老问题,云盘内搜索出来的文件没法获取地址

@acgotaku

This comment has been minimized.

Copy link
Owner

acgotaku commented Apr 12, 2018

@CaiPeterCai 这个功能不打算做。。。 搜到再去找那个文件就是了。。
我又不是做商业商品的 保证核心功能才是重点

@acgotaku acgotaku closed this Apr 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment