public static string GetMP4UrlBackUp(uint aid, int page = 1)
{
Log.Info("开始使用备选方案获取MP4地址 - aid" + aid);
string h5url = "http://www.bilibili.com/m/html5?aid=" + aid + "&page=" + page;
string html = GetHtml(h5url);
JavaScriptSerializer j = new JavaScriptSerializer();
BiliH5videoInfo info = new BiliH5videoInfo();
info = j.Deserialize<BiliH5videoInfo>(html);
if (info.src == "http://static.hdslb.com/error.mp4")
{
Log.Error("错误的AV号或页码!(有些老视频没有mp4格式的哦= =)");
return null;
}
else
{
return info.src;
}
}