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

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreeer committed Sep 27, 2016
1 parent 2477b9a commit 854cf8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bilibili_injected.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@
biliHelper.downloadUrls = [];
biliHelper.playbackUrls = [];
notifyCidHack();
if (videoDownloadLink.result.indexOf("error") >= 0 || typeof videoPlaybackLink == "undefined" || typeof videoPlaybackLink.durl == "undefined" || videoPlaybackLink.code <0) {
console.log(Number(videoPlaybackLink.code) < 0);
if (typeof videoPlaybackLink == "undefined" || typeof videoPlaybackLink.durl == "undefined" || Number(videoPlaybackLink.code) < 0) {
if (typeof videoDownloadLink.message == "string" || videoDownloadLink.result.indexOf("error") >= 0 || typeof videoDownloadLink.error_text == "string") {
if (typeof videoPlaybackLink.message == "string" || videoPlaybackLink.result.indexOf("error") >= 0 || typeof videoPlaybackLink.error_text == "string") {
try{if (videoDownloadLink.message.indexOf("地区") > -1) {
Expand Down Expand Up @@ -735,7 +736,7 @@
$('.player-wrapper .arc-toolbar').append(biliHelper.helperBlock);
});
biliHelperFunc();
}, 500);
}, 800);
});
return false;
}
Expand Down

0 comments on commit 854cf8c

Please sign in to comment.