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

Bangumi Parse Issue #65

Closed SilentAlice closed 7 years ago

SilentAlice commented 8 years ago

Some archived bangumi can be parsed successfully. While serial bangumi which is not end yet has a parse error. New bangumi is saved as an individual video. So we can not add index_n to preprocessed url naively.

One alternative solution is to wait response in fetch_video_metadata to see if it is a 404 Not Found and decide if we should remove the index_n.html from the url or set pid as 1 manually.

Also, I'm wondering if you can refer to http://www.flvcd.com to accelerate and simplify url parsing process. Thanks for your nice work!

m13253 commented 8 years ago

Actually you can use --source flvcd to use flvcd parse service. But I am not sure if the code still works after its last update.

m13253 commented 8 years ago

I will look into this issue next week after I reached home.

SilentAlice commented 8 years ago

flvcd works as long as the url is right.

m13253 commented 7 years ago

Merged your code, closing. Thank you for your support! ;-)