Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

哔哩哔哩番剧出差打开不了 #1234

Closed
Nameless0477 opened this issue Aug 3, 2023 · 19 comments · Fixed by #1296
Closed

哔哩哔哩番剧出差打开不了 #1234

Nameless0477 opened this issue Aug 3, 2023 · 19 comments · Fixed by #1296
Labels

Comments

@Nameless0477
Copy link

港澳台番剧能打开观看
番剧出差打开不了
1691049148871

@ZZZ-zero
Copy link

ZZZ-zero commented Aug 3, 2023

我也遇到了

@chengqiqqyy
Copy link

我也遇到了 IP:日本

@dfigj
Copy link

dfigj commented Aug 4, 2023

一样

@DLJ-123
Copy link

DLJ-123 commented Aug 5, 2023

+1

1 similar comment
@bestdayWithu
Copy link

+1

@15938791776
Copy link

我也一样,手机和pc端登不登录都打不开,疑似是锁大陆ip了

@15938791776
Copy link

我也遇到了 IP:日本

不会是ip也仅限港澳台了吧?

@rumianoesa
Copy link

开港台的全局代理就不会错误码400了,能正常打开。应该就是B站改了什么东西

@LonginusL33T
Copy link

但是不是很想用梯子访问,要不然又给我整账号异常

@15938791776
Copy link

但是不是很想用梯子访问,要不然又给我整账号异常

朋友,啥情况?用梯子访问会导致b站账号异常吗?我还不知道呢。是pc端还是手机端?是不是浏览器cookie的问题?

@LonginusL33T
Copy link

但是不是很想用梯子访问,要不然又给我整账号异常

朋友,啥情况?用梯子访问会导致b站账号异常吗?我还不知道呢。是pc端还是手机端?是不是浏览器cookie的问题?
不重要了。即便用了梯子,我也不知道该怎么给港澳台和国内分流。目前的域名基本上都是交叉的,没法彻底分开。

@paigupai
Copy link

paigupai commented Aug 13, 2023

一个简单的解决方法,但是有延迟,访问下面的url
https://www.biliplus.com/api/do.php?act=search&o=pubdate&n=30&p=1&source=biliplus&word=%40m%3D11783021

@plazum
Copy link

plazum commented Aug 18, 2023

一个简单的解决方法,但是有延迟,访问下面的url
https://www.biliplus.com/api/do.php?act=search&o=pubdate&n=30&p=1&source=biliplus&word=%40m%3D11783021

你要这个的话直接这样就行
https://www.biliplus.com/space/11783021/
(话说突然发现这个issue的ID是1234,233)

@Hicircum
Copy link

一个临时解决方案

注意事项

  • 该方案仅能恢复番剧出差主页的动态
  • 搜索不可用
  • 如果遇到意外错误请删除以下改动或重新安装脚本

操作

在脚本第3767行return null前加上以下代码

else if (url.match(RegExps.url('api.bilibili.com/x/space/navnum?')) || url.match(RegExps.url('api.bilibili.com/x/space/navnum?'))) {
    const json = JSON.parse(xhr.responseText);
    if (json.code === -400) {
        const requestURL = new URL(url);
        const mid = requestURL.searchParams.get('mid');
        if (mid == 0) {
            requestURL.searchParams.set('mid', 11783021);
            return Async.ajax(requestURL.href)
                .then(async data => {
                return data
            })

        }
    }
}else if (url.match(RegExps.url('api.bilibili.com/x/ugcpay-rank/elec/month/up?')) || url.match(RegExps.url('api.bilibili.com/x/ugcpay-rank/elec/month/up?'))) {
    const json = JSON.parse(xhr.responseText);
    if (json.code === -400) {
        const requestURL = new URL(url);
        const mid = requestURL.searchParams.get('mid');
        if (mid == 0) {
            requestURL.searchParams.set('mid', 11783021);
            return Async.ajax(requestURL.href)
                .then(async data => {
                return data
            })

        }
    }
}else if (url.match(RegExps.url('api.bilibili.com/x/space/notice?')) || url.match(RegExps.url('api.bilibili.com/x/space/notice?'))) {
    const json = JSON.parse(xhr.responseText);
    if (json.code === -400) {
        const requestURL = new URL(url);
        const mid = requestURL.searchParams.get('mid');
        if (mid == 0) {
            requestURL.searchParams.set('mid', 11783021);
            return Async.ajax(requestURL.href)
                .then(async data => {
                return data
            })

        }
    }
}else if (url.match(RegExps.url('api.bilibili.com/x/space/top/arc?')) || url.match(RegExps.url('api.bilibili.com/x/space/top/arc?'))) {
    const json = JSON.parse(xhr.responseText);
    if (json.code === -400) {
        const requestURL = new URL(url);
        const vmid = requestURL.searchParams.get('vmid');
        if (vmid == 0) {
            requestURL.searchParams.set('vmid', 11783021);
            return Async.ajax(requestURL.href)
                .then(async data => {
                return data
            })

        }
    }
}else if (url.match(RegExps.url('api.bilibili.com/x/space/masterpiece?')) || url.match(RegExps.url('api.bilibili.com/x/space/masterpiece?'))) {
    const json = JSON.parse(xhr.responseText);
    if (json.code === -400) {
        const requestURL = new URL(url);
        const vmid = requestURL.searchParams.get('vmid');
        if (vmid == 0) {
            requestURL.searchParams.set('vmid', 11783021);
            return Async.ajax(requestURL.href)
                .then(async data => {
                return data
            })

        }
    }
}

原理

简单粗暴替换api中被设为0的mid/vmid
但是在对https://api.bilibili.com/x/space/wbi/arc/search?进行操作时遇到错误,故仅恢复了番剧出差动态

@cakesa
Copy link

cakesa commented Sep 14, 2023

我昨天也遇到这个问题了,不知如何解决

@stale
Copy link

stale bot commented Oct 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 15, 2023
@skyfackr
Copy link

等等这机器人什么意思这是大问题啊

@stale stale bot removed the wontfix label Oct 16, 2023
@LonginusL33T
Copy link

等等这机器人什么意思这是大问题啊
你可以重新提一个ISSUE,长时间没变化肯定会关掉啊

Copy link

stale bot commented Dec 15, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Dec 15, 2023
Howard20181 added a commit to Howard20181/bilibili-helper that referenced this issue Jan 2, 2024
Howard20181 added a commit to Howard20181/bilibili-helper that referenced this issue Jan 2, 2024
Howard20181 added a commit to Howard20181/bilibili-helper that referenced this issue Jan 2, 2024
ipcjs added a commit that referenced this issue Jan 3, 2024
* fix(balh): 修复出差空间动态不显示的问题

fix #1234

* wip: 整理代码

---------

Co-authored-by: ipcjs.mac <gipcjs@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.