Skip to content

Commit

Permalink
Update User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed May 15, 2021
1 parent 60fd5cb commit eaa57b0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,10 @@ ffmpeg -f concat -safe 0 -i <(for f in $(ls $name-*.flv | sort -n); do echo "fil
- [you-get](https://github.com/soimort/you-get) by soimort, MIT license
- [annie](https://github.com/iawia002/annie) by iawia002
- [youtube-dl](https://github.com/ytdl-org/youtube-dl) by ytdl-org
- [Bilibili_video_download](https://github.com/Henryhaohao/Bilibili_video_download) by Henryhaohao

这里还有一些其它的库和浏览器插件供参考。

- [XML 转 ASS 库](https://github.com/tiansh/us-danmaku) 以及 bilibili ASS Danmaku Downloader by tiansh, Mozilla Public License 2.0
- [bilibili-get](https://github.com/kamikat/bilibili-get) by kamikat
- [bilitwin](https://github.com/Xmader/bilitwin) by Xmader
- [bili-api](https://github.com/simon300000/bili-api) by simon300000

Expand Down
3 changes: 1 addition & 2 deletions app/js/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class Downloader {
$("#nav").css("display", "flex");
if ($(".tab-pane").eq(1).is(":hidden")) {
changeMenu(0);
//$(".tab-pane").eq(0).fadeIn();
}
fetch("https://api.bilibili.com/x/web-interface/view?aid=" + aid)
.then(response => response.json())
Expand Down Expand Up @@ -227,7 +226,7 @@ class Downloader {
url: this.links[part],
headers: {
"Range": `bytes=${state ? state.size : 0}-`, //断点续传
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36",
"Referer": url
}
};
Expand Down

0 comments on commit eaa57b0

Please sign in to comment.