justintv-stream-notifications icon indicating copy to clipboard operation
justintv-stream-notifications copied to clipboard

panda.tv

Open freaktechnik opened this issue 8 years ago • 5 comments

Panda.tv, no idea if there even is an API. But there's all kinds of people on that site^^

freaktechnik avatar Aug 28 '16 12:08 freaktechnik

Has there been any progress with this one? I did some looking around and found you can access their API by > http://www.panda.tv/api_room?roomid=***

{"errno":0,"errmsg":"","data":{"hostinfo":{"rid":32606130,"name":"Puppey","avatar":"http:\/\/i6.pdim.gs\/365c44508bce99005c1ac94858e404e0.jpeg","bamboos":"196946"},"roominfo":{"id":"3334","name":"Secret Puppey","type":"1","bulletin":"[\u6218\u672f\u5927\u5e08]Puppey","details":"","person_num":"0","classification":"DOTA2","fans":"5608","speak_interval":"2","banned_reason":"","status":"2","unlock_time":"0","watermark_switch":"2","watermark_loc":"1","cover_status":"2","cover_timestamp":1478799738,"cover_reason":"","mild_remind_status":"2","mild_remind_timestamp":1478799738,"mild_remind_reason":"","account_status":"1","pictures":{"img":"http:\/\/i5.pdim.gs\/45\/8891030439a57abc3fbded3f84bc9d33\/w338\/h190.jpg","qrcode":"http:\/\/i9.pdim.gs\/f0b165a12a7f493735e92d0d2c43428b.png"},"start_time":"1472652408","end_time":"1472661434","cate":"dota2","remind_content":"","remind_time":"0","remind_status":"0"},"videoinfo":{"name":"dota","time":"6147330","stream_addr":{"HD":"0","OD":"0","SD":"1"},"room_key":"9168ebeb045eab9bbb5368c0d9f8d8df","plflag_list":"{\"backup\":[\"4_7\",\"5_9\",\"6_14\",\"12_24\"],\"current\":\"\",\"default\":true,\"main\":\"2_3\",\"update_time\":\"\"}","plflag":"2_3","status":"3"},"chatinfo":[],"userinfo":{"rid":-40147133,"is_followed":"0","sp_identity":"0"}}}

Not sure if there's anything useful, but If you want I can look into it a little more.

edit: There's already a livestreamer plugin written for it so having it integrated in your extension would be awesome

LeLobster avatar Nov 10 '16 17:11 LeLobster

According to my past 10 minutes research "status":"2" is online, "status":"3" is offline

LeLobster avatar Nov 10 '16 18:11 LeLobster

The only thing needed is an easy way to get the room ID, or a consistent way, I guess. As I am very bad at reading non-latin script (i.e. I don't know how to read anything else), I am not sure what exactly is the room ID and don't currently have the time to figure it out, so I'd be really grateful if you could do that!

freaktechnik avatar Nov 10 '16 22:11 freaktechnik

Not sure what you mean, the link to a channel contains the room ID. i.e.: http://www.panda.tv/181469 And in the API: panda.tv/api_room?roomid=181469 it's "roominfo":{"id":"181469"

LeLobster avatar Nov 11 '16 17:11 LeLobster

Oh ok, that didn't work for me when I tried, nice!

freaktechnik avatar Nov 11 '16 19:11 freaktechnik