mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Allow https host
This commit is contained in:
parent
8948982199
commit
d889bffbc5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
min/batch-download.min.js
vendored
2
min/batch-download.min.js
vendored
File diff suppressed because one or more lines are too long
2
min/download-video.min.js
vendored
2
min/download-video.min.js
vendored
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@ class Batch {
|
||||
const json = JSON.parse(await this.collectData(quality))
|
||||
if (rpc) {
|
||||
const option = settings.aria2RpcOption
|
||||
const host = option.host.startsWith('http://') ? option.host : 'http://' + option.host
|
||||
const host = option.host.match(/^http[s]?:\/\//) ? option.host : 'http://' + option.host
|
||||
const methodName = 'aria2.addUri'
|
||||
for (const item of json) {
|
||||
const params = item.fragments.map((fragment, index) => {
|
||||
|
||||
@ -255,7 +255,7 @@ class VideoDownloader {
|
||||
VideoDownloader.downloadBlob(new Blob([danmaku]), `${getFriendlyTitle()}.${this.danmakuOption === 'ASS' ? 'ass' : 'xml'}`);
|
||||
}
|
||||
const option = settings.aria2RpcOption;
|
||||
const host = option.host.startsWith('http://') ? option.host : 'http://' + option.host;
|
||||
const host = option.host.match(/^http[s]?:\/\//) ? option.host : 'http://' + option.host;
|
||||
const methodName = 'aria2.addUri';
|
||||
const params = this.fragments.map((fragment, index) => {
|
||||
let indexNumber = '';
|
||||
|
||||
@ -279,7 +279,7 @@ class VideoDownloader {
|
||||
VideoDownloader.downloadBlob(new Blob([danmaku]), `${getFriendlyTitle()}.${this.danmakuOption === 'ASS' ? 'ass' : 'xml'}`)
|
||||
}
|
||||
const option = settings.aria2RpcOption
|
||||
const host = option.host.startsWith('http://') ? option.host : 'http://' + option.host
|
||||
const host = option.host.match(/^http[s]?:\/\//) ? option.host : 'http://' + option.host
|
||||
const methodName = 'aria2.addUri'
|
||||
const params = this.fragments.map((fragment, index) => {
|
||||
let indexNumber = ''
|
||||
|
||||
Loading…
Reference in New Issue
Block a user