Skip to content

Commit

Permalink
Update utils_bilibili.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobby233Liu authored Feb 24, 2023
1 parent 84082b9 commit d2027a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils_bilibili.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function getOriginalURLOfB23TvRedir(url) {

// is this not a redirect? if so, check if we've got an error
// (vercel hates me https://github.com/vercel/fetch/blob/23038037ee/packages/fetch/index.js#L43)
if (new URL(response.url).hostname != "b23.tv") {
if (new URL(response.url).hostname == "b23.tv") {
let responseData;
try {
responseData = await response.text();
Expand Down

0 comments on commit d2027a2

Please sign in to comment.