巴哈動漫瘋 跳過網站直抓 m3u8 以及巴哈通知 api

動漫瘋 2016年6月15日

首先需要取得一組 device ID

http://ani.gamer.com.tw/ajax/getdeviceid.php?id=

然後將 device ID 和想要的影片 ID 放入以下網址

http://ani.gamer.com.tw/ajax/token.php?adID=0&sn=[影片_ID]&device=[device_ID]&hash=[騙鬼用的13碼英數組合]

hash 取得 code ( 不知功用為何

function e() { var t = (new Date).getTime(); window.performance && "function" == typeof window.performance.now && (t += performance.now()); var e = "xxxxxxxxxxxx".replace(/[x]/g, function(e) { var n = (t + 16 * Math.random()) % 16 | 0; return t = Math.floor(t / 16), ("x" == e ? n : 3 & n | 8).toString(16) }); return e }

然後將結果的 SRC 資料取出可取得一 m3u8 檔

裡面放了四種解析度的 ts 分割 m3u8 檔 ( 360, 540, 720, 1080 )

選擇所需網址

http://gamer-cds.cdn.hinet.net/vod/gamer/[m3u檔名到-video前]/hls-ae-2s/[m3u8網址]

以上


未確認 url (需要未知參數

http://ani.gamer.com.tw/ajax/want2play.php?s=[動漫_ID]

還不小心寫了個插件 Bug 有點多:連結 

https://drive.google.com/drive/folders/0B1NOJo1tOF_KdTJfY2xXd2g5eWM?usp=sharing ( 更新 內含原始碼 歡迎自行取閱改動

使用方法 到網站下按下右鍵選單 可以找到按鈕 在看完廣告之後點擊 (無法略過了) 再打開選單就可以選擇連結  ( 更新 但不是最新 因該是還能用吧 大概 又不能用請叫我更新

至於通知 api

http://ani.gamer.com.tw/ajax/topBar_AJAX.php?type=[type]

type 共有三種 light_0 (所有通知)、light_1(訂閱通知)、light_2 (推薦)

又有得做小工具了

補充

提醒的API

http://ani.gamer.com.tw/ajax/notify.php?a=[type]

[type] 有 1 : 三種訊息數量,逗點隔開,2 : 公開消息xml,3:未知

鳥祐

前端愛好者 email: [email protected]

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.