Skip to content
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

♻️ refactor: refactor main and support text input #47

Closed
wants to merge 2 commits into from

Conversation

SigureMo
Copy link
Member

@SigureMo SigureMo commented Oct 17, 2020

重构主函数,并支持同时下载多个链接

closes #46 #25

如何下载多个文件

现在参数不仅支持 url 链接,还支持列表文件

urllist.txt 文件:

https://www.bilibili.com/video/BV1vZ4y1M7mQ
  quality 112
  dir /home/sigure/bilili
https://www.bilibili.com/video/BV1Z4411C7Qd
  audio_quality 30280
  

命令如下

bilili file:///home/sigure/urllist.txt --overwrite --audio-quality=30216

此外还增加了从标准输入读取的支持,这样你可以通过管道的方式非常方便地使用

cat /home/sigure/urllist.txt | bilili --overwrite --audio-quality=30216
# or
bilili --overwrite --audio-quality=30216 < /home/sigure/urllist.txt

值得注意的是,文件中所使用的局部参数将覆盖全局参数,比如这里第二个视频的参数仍是 30280

概述

本 PR 的类型(至少选择一个)

  • ✨ feat: 添加新功能
  • 🐛 fix: 修复 bug
  • 📝 docs: 对文档进行修改
  • 🎨 style: 对代码语义无影响的格式修改(如去除无用空格、格式化等等修改)
  • ♻️ refactor: 代码重构(既不是新增功能,也不是修改 bug 的代码变动)
  • ⚡ perf: 提高性能的代码修改
  • ✅ test: 测试用例添加及修改
  • 🔨 build: 影响构建系统或外部依赖关系的更改
  • 👷 ci: 更改 CI 配置文件和脚本
  • ❓ chore: 其它不涉及源码以及测试的修改

PR 状态

WIP,由于本版本修改较多,尚需要比较充分的测试,部分细节仍需补足,另外由于近期空闲时间较少,本 PR 可能需要过很久才能合并

对 Windows 支持尚需测试(目测某些地方是不支持的)

@vercel
Copy link

vercel bot commented Oct 17, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

bilili – ./docs

🔍 Inspect: https://vercel.com/siguremo/bilili/qh8oub9ya
✅ Preview: https://bilili-git-refactor-main.siguremo.vercel.app

bilipi – ./

🔍 Inspect: https://vercel.com/siguremo/bilipi/a8wzwomdm
✅ Preview: https://bilipi-git-refactor-main.siguremo.vercel.app

@SigureMo
Copy link
Member Author

近期没太多精力,暂时搁置……

@SigureMo SigureMo closed this Dec 28, 2020
@SigureMo SigureMo deleted the refactor-main branch April 14, 2021 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

♻️ 主函数分解
1 participant