Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

Commit

Permalink
bilibiliVideoProvider: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreeer committed Jun 8, 2017
1 parent 5eed058 commit 5930376
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/content_scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ const bilibiliVideoProvider = async(cid, avid, page = 1, credentials = 'include'
}
// if flv urls still not available, retry with biliplus api (a 3rd-party api)
if (video.mediaDataSource.type === 'mp4') {
video.flv = await getVideoLink(`${location.protocol}://www.biliplus.com/BPplayurl.php?cid=${cid}&otype=json&quality=4&type=flv&update=1`, 'flv', retries, credentials, retryDelay);
video.flv = await getVideoLink(`${location.protocol}//www.biliplus.com/BPplayurl.php?cid=${cid}&otype=json&quality=4&type=flv&update=1`, null, retries, credentials, retryDelay);
processVideoUrlObj(video.flv);
video.mediaDataSource = parseJsonforFlvjs(video.flv);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"short_name": "__MSG_extShortName__",
"options_page": "options.html",
"permissions": [ "downloads", "cookies", "storage", "tabs", "webRequest", "webRequestBlocking", "*://*.bilibili.com/*", "*://*.bilibili.cn/*", "*://*.bilibili.tv/*", "*://*.letv.cn/*", "*://*.hdslb.com/*", "*://*.acgvideo.com/*", "*://*/*.acgvideo.com/*", "*://*.biliplus.com/*" , "*://biliplus.ipcjsdev.tk/*" ],
"version": "0.9.0.63",
"version": "0.9.0.64",
"minimum_chrome_version": "55.0",
"content_security_policy":"script-src 'self' 'unsafe-eval'; object-src 'self'",
"web_accessible_resources": [ "template.html"]
Expand Down
2 changes: 1 addition & 1 deletion libs/bilibiliVideoProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const bilibiliVideoProvider = async(cid, avid, page = 1, credentials = 'include'
}
// if flv urls still not available, retry with biliplus api (a 3rd-party api)
if (video.mediaDataSource.type === 'mp4') {
video.flv = await getVideoLink(`${location.protocol}://www.biliplus.com/BPplayurl.php?cid=${cid}&otype=json&quality=4&type=flv&update=1`, 'flv', retries, credentials, retryDelay);
video.flv = await getVideoLink(`${location.protocol}//www.biliplus.com/BPplayurl.php?cid=${cid}&otype=json&quality=4&type=flv&update=1`, null, retries, credentials, retryDelay);
processVideoUrlObj(video.flv);
video.mediaDataSource = parseJsonforFlvjs(video.flv);
}
Expand Down

0 comments on commit 5930376

Please sign in to comment.