File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,13 @@ public static async Task PostBroadcasterComment(IDataSource server, CookieContai
3939
4040 public static async Task < UserLiveInfo [ ] > GetCurrentUserLiveId ( IDataSource server , CookieContainer cc , string UserId ) {
4141 //下記のAPIから、過去の放送や放送状況がとれる。
42- //"https://live.nicovideo.jp/front/api/v1 /user-broadcast-history?providerId=userId &providerType=user&limit=1"
42+ //"https://live.nicovideo.jp/front/api/v2 /user-broadcast-history?providerId=48495285 &providerType=user&isIncludeNonPublic=false&offset=0& limit=1&withTotalCount=true "
4343 //放送したことがない場合は
4444 //{"meta":{"status":200},"data":{"programsList":[],"hasNext":false,"totalCount":0}}
4545 //が返ってくる
4646
47- var url = $ "https://live.nicovideo.jp/front/api/v1/user-broadcast-history?providerId={ UserId } &providerType=user&limit=1";
47+
48+ var url = $ "https://live.nicovideo.jp/front/api/v2/user-broadcast-history?providerId={ UserId } &providerType=user&isIncludeNonPublic=false&offset=0&limit=1&withTotalCount=true";
4849 var res = await server . GetAsync ( url , cc ) ;
4950 dynamic d = JsonConvert . DeserializeObject ( res ) ;
5051 if ( d . meta . status != 200 )
You can’t perform that action at this time.
0 commit comments