dotennin / baidu-pan-downloader Goto Github PK
View Code? Open in Web Editor NEWA download manager for Baidu Yun using Tampermonkey
License: MIT License
A download manager for Baidu Yun using Tampermonkey
License: MIT License
对正常使用影响不大,不过我有点强迫症。
如果下载列表中文件较多,会出现滚动条,但是滚动时会发现右边的删除按钮(X)不会跟随滚动
error之后再点击下载按钮,似乎不是立即禁用该按钮,而是会等回调后再禁用(?)。偶尔有一次回调时间太长,一时手痒多点了几次,然后它开始下载了,但是下载按钮仍然是可用的,停止按钮依然是禁用的……
没看源码,以上是瞎猜的……
第二点复现方式:快速双击下载按钮就会出现
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Please add support for pan.baidu.com/s/ links. Xiexie.
Is your feature request related to a problem? Please describe.
插件自动下载完成后,会跳出选项框,选择保存的地点,那么下载过程中的文件是存在temp中了吗?
不小心关掉跳出的保存位置选项后,无法再次进入。只得再次下载。
Describe the solution you'd like
希望添加一个比较明显的选项,可以再度进入保存选项框。
refer to : Tampermonkey/tampermonkey#983
I use it on Chrome, but everytime when the downloads is 100%, then it stops.
Doesn't work on edge chromium. Stuck on 0%.
On Ubuntu 20.04.3 LTS, I want to directly use the baidu-pan-downloader
in development and dynamic loading mode without the help of Greasemonkey. The detailed steps are as follows:
$ node --version
v16.10.0
$ git clone https://github.com/dotennin/baidu-pan-downloader.git baidu-pan-downloader.git
$ cd baidu-pan-downloader.git
$ npm install
$ npm run build
#https://stackoverflow.com/questions/51706882/create-react-app-how-do-i-npm-start-with-a-specific-browser
# If available, the Chrome browser will be used first.
# To use a different, use the following environment variable setting:
$ BROWSER=firefox npm start
Through the above method, the Firefox browser will automatically open and navigate to https://pan.baidu.com/disk/home. But I'm still not sure whether the above method will let me directly use the baidu-pan-downloader
in development and dynamic loading mode without the help of Greasemonkey.
Any hints/comments/explanations will be highly appreciated.
Regards,
HZ
下载的时候显示下载完成,保存后却是0B。
Hi OP, I try to download some files from my pan.baidu.com/disk/ but the download progress is stuck at 0% and no download speed is given. I just ran it in Chrome with tampermonkey add-in. Do I do anything wrong here? Thanks!!!!!
It seems not running on pan but google.com does have Tampermonkey promption that React is running.
Also,
not sure I have this, 'Navigate to google and you should see a react component inserted at the bottom of the page', running. Any screenshot would be better.
THANKS
This's part of err-report. I'm not familiar with node. Please let me know if anything else is needed.
config-overrides.js:86
config.entry = config.entry.filter((x) => !x.toLowerCase().includes('hotdev'))
^
TypeError: config.entry.filter is not a function
Result of npm install
is below.
npm WARN [email protected] No repository field.
audited 2349 packages in 8.886s
127 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
When I run npm run build after successfull npm install, this is what I get as error, do you know why this could be happening?
npm run-script build
[email protected] build /home/kadir/Documents/baidu-pan-downloader
npm run clean && react-app-rewired build && node user-script.js > ./dist/bundle.user.js && cat ./build/static/js/main.js >> ./dist/bundle.user.js
[email protected] clean /home/kadir/Documents/baidu-pan-downloader
rimraf build/*
/home/kadir/Documents/baidu-pan-downloader/node_modules/terser-webpack-plugin/node_modules/p-limit/index.js:30
} catch {}
^
SyntaxError: Unexpected token {
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/home/kadir/Documents/baidu-pan-downloader/node_modules/terser-webpack-plugin/dist/index.js:26:38)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:npm run clean && react-app-rewired build && node user-script.js > ./dist/bundle.user.js && cat ./build/static/js/main.js >> ./dist/bundle.user.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
7z文件无法下载,但只要把7z的文件扩展名删除后就能正常下载了
浏览器是 Edge 84.0.522.28 (官方内部版本) beta (64 位)
Describe the bug
Download big size file stuck at 100%
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
chrome浏览器,版本号 77.0.3865.90
100%以后下载文件全是1k大小,打开里面内容如下
{"redo":2,"error_code":31626,"error_msg":"user is not authorized, hitcode:122","error_info":"","request_id":4295073190928875781}
Describe the bug
Recently I am no longer able to download from Baidu Cloud Storage. Used to work flawlessly without any issues and today I was able to download one file by using a small workaround. The link in "Local Chain/本地直链" didn't appear like usually when I select a file I need and decided to select the file again and press Download directly in the Baidu Cloud Storage to let it generate a link and that actually fixed it and a direct download link in "Local Chain/本地直链" appeared. Used IDM and the file downloaded successfully. Tried to replicate the workaround to download another file but it didn't work and no matter if I clear all my cookies in my browser and login again, nothing has fixed the issue and I am no longer able to download from Baidu. Downloading fails after some time in the script menu too. EDIT: After trying several times for hours, it started to download the second file. Could have been an extension conflict.
To Reproduce
Expected behavior
Desktop
这个下载好像也要看文件类型的?我下载压缩包可以用,下载apk文件就一直是error
As noted in the README here:
In Firefox or Chrome, install Greasemonkey or Tampermonkey.
You can then test the userscript by installing it here. Navigate to google
and you should see a react component inserted at the bottom of the page.
The userscript used for testing is so huge: there are 9680 lines in it. Wile I also noticed that the corresponding development version of this script, i.e., the scripts located at here and here, are so small.
To summarize, my question is: Why is the user script so large and its development version so small?
Regards,
HZ
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.