mirror of
https://github.com/sifacaii/VlcJellyfin
synced 2025-05-26 06:20:20 -04:00
适配竖屏
This commit is contained in:
parent
df3b82ff30
commit
22c527d7b2
@ -305,7 +305,7 @@ public class JfClient {
|
||||
*/
|
||||
public static void GetSeasons(String seriesId, JJCallBack cb, JJCallBack errcb) {
|
||||
String SeasonsUrl = config.getJellyfinUrl() + "/Shows/" + seriesId + "/Seasons?userId=" + UserId;
|
||||
SeasonsUrl += "&Fields=ItemCounts,PrimaryImageAspectRatio,BasicSyncInfo,MediaSourceCount";
|
||||
SeasonsUrl += "&Fields=ItemCounts,PrimaryImageAspectRatio,BasicSyncInfo,MediaSourceCount,Path";
|
||||
|
||||
SendGet(SeasonsUrl, new JJCallBack() {
|
||||
@Override
|
||||
@ -358,7 +358,7 @@ public class JfClient {
|
||||
*/
|
||||
public static void GetCollection(String parentId, String type, String sortBy, String sortOrder, int limit, int page, JJCallBack cb, JJCallBack errcb) {
|
||||
String itemsUrl = config.getJellyfinUrl() + "/Users/" + UserId + "/Items?ParentId=" + parentId + "&Limit=" + limit;
|
||||
itemsUrl += "&Recursive=true&Fields=PrimaryImageAspectRatio,BasicSyncInfo,Seasons,Episodes&ImageTypeLimit=1";
|
||||
itemsUrl += "&Recursive=true&Fields=PrimaryImageAspectRatio,BasicSyncInfo,Seasons,Episodes,Path&ImageTypeLimit=1";
|
||||
itemsUrl += "&EnableImageTypes=Primary,Backdrop,Banner,Thumb";
|
||||
itemsUrl += "&SortBy=" + sortBy + ",SortName,ProductionYear&SortOrder=" + sortOrder;
|
||||
|
||||
|
@ -62,13 +62,20 @@
|
||||
android:layout_marginTop="30dp"
|
||||
android:text="播放列表:" />
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tab_container"
|
||||
<HorizontalScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:tabGravity="start">
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<com.google.android.material.tabs.TabLayout
|
||||
android:id="@+id/tab_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:tabGravity="start">
|
||||
|
||||
</com.google.android.material.tabs.TabLayout>
|
||||
|
||||
</HorizontalScrollView>
|
||||
|
||||
</com.google.android.material.tabs.TabLayout>
|
||||
|
||||
<org.sifacai.vlcjellyfin.Component.JRecyclerView
|
||||
android:id="@+id/mGridView"
|
||||
|
Loading…
Reference in New Issue
Block a user