m13253 / BiliDan

Play videos on Bilibili.com with MPV and Danmaku2ASS
http://m13253.blogspot.com/2014/06/watch-bilibili-with-biligrab-danmaku2ass.html
Other
513 stars 69 forks source link

ERROR: 'bytes' object has no attribute 'hex' #80

Closed xhao79 closed 7 years ago

xhao79 commented 7 years ago

./bilidan.py --source overseas http://www.bilibili.com/video/av7152135/ INFO: Loading video info... INFO: Got video cid: 11666678 INFO: Loading video content... WARNING: Bilibili API server indicates the API protocol has been updated, the extraction may not work! ERROR: 'bytes' object has no attribute 'hex'

m13253 commented 7 years ago

很显然,API 又被封了。 现在 B 站官方有 HTML 5 播放器之后我也没精力维护 BiliDan 了。

先凑合用 HTML 5 播放器吧,然后等大神破解。😂

cnbeining commented 7 years ago

SWF的抠出来了 看Biligrab。

tcya commented 7 years ago

fake_hw = random.Random().randrange(start=0, stop=18000000000000000084).to_bytes(8, 'big').hex() 改成 fake_hw = random.Random().randrange(start=0, stop=18000000000000000084).to_bytes(8, 'big') fake_hw = codecs.encode(fake_hw, 'hex_codec') 就行了

m13253 commented 7 years ago

感谢提供修复方法。 欢迎提交 pull request。