mirror of
https://github.com/sifacaii/VlcJellyfin
synced 2025-05-26 06:20:20 -04:00
添加jellyfin client
This commit is contained in:
parent
39a42f925b
commit
0bc35c9ff5
@ -47,8 +47,7 @@ public class DetailActivity extends BaseActivity implements JAdapter.OnItemClick
|
||||
getSupportActionBar().hide();
|
||||
|
||||
if (Utils.UserId.equals("") || Utils.AccessToken.equals("")) {
|
||||
Intent intent = new Intent(this, MainActivity.class);
|
||||
startActivity(intent);
|
||||
finish();
|
||||
}
|
||||
|
||||
mActivity = this;
|
||||
|
@ -108,9 +108,27 @@ public class JfClient {
|
||||
return playurl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取项目附加部分
|
||||
* @param itemid
|
||||
* @param cb
|
||||
*/
|
||||
public static void GetAddPart(String itemid,JJCallBack cb){
|
||||
String AddPartUrl = "/Videos/" + itemid + "/AdditionalParts?userId=" + UserId;
|
||||
SendGet(AddPartUrl,new JJCallBack(){
|
||||
@Override
|
||||
public void onSuccess(String str) {
|
||||
JsonObject item = strToGson(str, JsonObject.class);
|
||||
if (null != item) {
|
||||
JsonArray items = jeFromGson(item, "Items").getAsJsonArray();
|
||||
cb.onSuccess(items);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取剧集
|
||||
*
|
||||
* @param seriesId 剧ID
|
||||
* @param seasonId 季ID
|
||||
* @param cb
|
||||
|
Loading…
Reference in New Issue
Block a user