mirror of
https://github.com/sifacaii/VlcJellyfin
synced 2025-06-03 00:58:06 -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) {
|
public static void GetSeasons(String seriesId, JJCallBack cb, JJCallBack errcb) {
|
||||||
String SeasonsUrl = config.getJellyfinUrl() + "/Shows/" + seriesId + "/Seasons?userId=" + UserId;
|
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() {
|
SendGet(SeasonsUrl, new JJCallBack() {
|
||||||
@Override
|
@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) {
|
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;
|
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 += "&EnableImageTypes=Primary,Backdrop,Banner,Thumb";
|
||||||
itemsUrl += "&SortBy=" + sortBy + ",SortName,ProductionYear&SortOrder=" + sortOrder;
|
itemsUrl += "&SortBy=" + sortBy + ",SortName,ProductionYear&SortOrder=" + sortOrder;
|
||||||
|
|
||||||
|
@ -62,6 +62,10 @@
|
|||||||
android:layout_marginTop="30dp"
|
android:layout_marginTop="30dp"
|
||||||
android:text="播放列表:" />
|
android:text="播放列表:" />
|
||||||
|
|
||||||
|
<HorizontalScrollView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<com.google.android.material.tabs.TabLayout
|
<com.google.android.material.tabs.TabLayout
|
||||||
android:id="@+id/tab_container"
|
android:id="@+id/tab_container"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -70,6 +74,9 @@
|
|||||||
|
|
||||||
</com.google.android.material.tabs.TabLayout>
|
</com.google.android.material.tabs.TabLayout>
|
||||||
|
|
||||||
|
</HorizontalScrollView>
|
||||||
|
|
||||||
|
|
||||||
<org.sifacai.vlcjellyfin.Component.JRecyclerView
|
<org.sifacai.vlcjellyfin.Component.JRecyclerView
|
||||||
android:id="@+id/mGridView"
|
android:id="@+id/mGridView"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user