使用 https

This commit is contained in:
Genteure 2018-12-17 21:24:57 +08:00
parent 52e1118ff6
commit fc22b8862c
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ namespace BililiveRecorder.Core
/// <exception cref="Exception"/>
public static RoomInfo GetRoomInfo(int roomid)
{
string url = $@"http://api.live.bilibili.com/AppRoom/index?room_id={roomid}&platform=android";
string url = $@"https://api.live.bilibili.com/AppRoom/index?room_id={roomid}&platform=android";
var data = HttpGetJson(url);
var i = new RoomInfo()
{

View File

@ -27,7 +27,7 @@ namespace BililiveRecorder.Core
{
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
private const string defaulthosts = "broadcastlv.chat.bilibili.com";
private const string CIDInfoUrl = "http://live.bilibili.com/api/player?id=cid:";
private const string CIDInfoUrl = "https://live.bilibili.com/api/player?id=cid:";
private readonly Func<TcpClient> funcTcpClient;