bilibili-helper / bilibili-helper-o

哔哩哔哩 (bilibili.com) 辅助工具,可以替换播放器、推送通知并进行一些快捷操作
https://bilibili-helper.github.io
Mozilla Public License 2.0
3.83k stars 455 forks source link

(国内)下载地址显示:“视频地址获取中,请稍等…” #267

Closed ApolloZhu closed 7 years ago

ApolloZhu commented 8 years ago

确认不是网速的问题,0.8.140.8.15.40.8.15.5 都试过了,经过多次装卸重启 请问什么原因?

myfreeer commented 8 years ago

266

interface.bilibili.com似乎有所调整,强制要求带sign了 试试这个链接内容是不是{"code":-5003,"result":"checksum error"} http://interface.bilibili.com/playurl?platform=android&otype=json&appkey=86385cdc024c0f6c&cid=6281450&quality=2&type=mp4

ApolloZhu commented 8 years ago

嗯,好吧

koushuiji commented 8 years ago

最近老是卡在视频地址获取中,请稍等而且一直在更换播放器,

13415038454 commented 8 years ago

卡在"视频地址获取中...."还有播放器只能显示原始播放器,没有其他选项

sHacOer commented 8 years ago

@myfreeer 我的也是这个情况,试了你给的链接,返回值是{"code":-5003,"result":"checksum error"}

betaY commented 8 years ago

b站现在下载需要sign验证 暂时应该是下不了了

myfreeer commented 8 years ago

低清接口:http://www.bilibili.com/m/html5?aid=5865702&page=1

低清接口仍然可以解析,但想要其他清晰度似乎只能用第三方接口了

steven7851 commented 8 years ago
var cid = $('#av_source').attr('cid');
var params='appkey=85eb6835b0a1034e&cid=' + cid + '&otype=json&platform=android&quality=3&type=mp4';
var sign=hex_md5(params + '2ad42749773c441109bdc0191257a664');
var url = 'http://interface.bilibili.com/playurl?'+params+'&sign='+sign;

refer from Bili_Fix_Player

ApolloZhu commented 8 years ago

以上方法确实可行,不过

json 文件

{  
   省略,
   "durl":[  
      {  
         省略,
         "url":高清晰度(hd),
         "backup_url":[  
            "低清晰度"
         ]
      }
   ]
}
myfreeer commented 8 years ago

在 #20 有一个appkey=95acd7f6cc3392f3

https://github.com/zacyu/bilibili-helper/blob/master/src/background.js#L597-L600

            var url = {
                download: "http://interface.bilibili.com/playurl?platform=bilihelper&otype=json&appkey=95acd7f6cc3392f3&cid=" + request.cid + "&quality=3&type=" + getOption("dlquality"),
                playback: "http://interface.bilibili.com/playurl?platform=bilihelper&otype=json&appkey=95acd7f6cc3392f3&cid=" + request.cid + "&quality=2&type=mp4"
            };
myfreeer commented 8 years ago

新接口http://api.bilibili.com/playurl?&aid=5523650&page=1&platform=html5

jjj201200 commented 8 years ago

@zacyu Please have a look. Can we use this solution?

jjj201200 commented 8 years ago

@myfreeer 试了下好像不行啊 :s

myfreeer commented 8 years ago

@jjj201200 是指哪个?目前http://api.bilibili.com/playurl?&aid=5523650&page=1&platform=html5http://interface.bilibili.com/playurl?platform=bilihelper&otype=json&appkey=95acd7f6cc3392f3&cid=123456&quality=3都可用

jjj201200 commented 8 years ago

清晰度很低啊

myfreeer commented 8 years ago

backup_url里面能找到hd.mp4flv格式的链接

https://github.com/zacyu/bilibili-helper/blob/master/src/background.js#L251-L258

jjj201200 commented 8 years ago

@myfreeer 恩第二个我试了下可以的,只是这个platform=bilihelper不是早就不能用了么。。。?第一个html5源是低清的

myfreeer commented 7 years ago

低清接口再次改动:

var token = document.body.innerHTML.match(/token[ =]+[\'\"]([0-9a-f]+)[\'\"\;]+/)[1];
var page = location.href.match(/video\/av(\d+)\/index_(\d+).html/) ? "1" : location.href.match(/video\/av(\d+)\/index_(\d+).html/)[2];
var url = 'http://api.bilibili.com/playurl?&aid=' + location.href.match(/video\/av(\d+)/)[1] + '&page=' + request.pg + '&platform=html5&token=' + token
jjj201200 commented 7 years ago

目前0.8.16.17版本可以正常使用,请更新至该版本

shuaihuaiyi commented 7 years ago

@jjj201200 已经更新到最新版,但还是无法获取地址

jjj201200 commented 7 years ago

@S-H-Y-GitHub 请确认您的网络是否存在问题

jjj201200 commented 7 years ago

@S-H-Y-GitHub 你好,已经找到问题所在,请暂时切换到flash播放器使用这些功能。目前项目重构中,在此之前,我们会尽快推出0.8.16.*的后续测试版本。