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

Add TLS support. #82

Closed persmule closed 7 years ago

persmule commented 7 years ago

TLS is enabled explicitly with a new switch, or when a url prefixed with "https" is given.

m13253 commented 7 years ago

If HTTPS works, will there be any reason that we want to use an HTTP connection? If it's okay to only use HTTPS and abandon HTTP, we can omit that switch.

persmule commented 7 years ago

Because I don't know whether TLS support on bilibili will be dropped in the future. I believe it is necessary to keep basic usability, but it is no doubt okay to make TLS default.

persmule commented 7 years ago

Besides, when an HTTPS url is fed, TLS support is enabled implicitly, with no need to use that switch. The switch is only useful with "cid:xxx" syntax.