Browse Source

recursively retrieve jellyfin and emby items (#221)

pull/223/head
Jason Dove 5 years ago committed by GitHub
parent
commit
58d6f81d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      ErsatzTV.Infrastructure/Emby/IEmbyApi.cs
  2. 16
      ErsatzTV.Infrastructure/Jellyfin/IJellyfinApi.cs

16
ErsatzTV.Infrastructure/Emby/IEmbyApi.cs

@ -30,7 +30,9 @@ namespace ErsatzTV.Infrastructure.Emby @@ -30,7 +30,9 @@ namespace ErsatzTV.Infrastructure.Emby
string fields =
"Path,Genres,Tags,DateCreated,Etag,Overview,Taglines,Studios,People,ProductionYear,PremiereDate,MediaSources,OfficialRating",
[Query]
string includeItemTypes = "Movie");
string includeItemTypes = "Movie",
[Query]
bool recursive = true);
[Get("/Items")]
public Task<EmbyLibraryItemsResponse> GetShowLibraryItems(
@ -42,7 +44,9 @@ namespace ErsatzTV.Infrastructure.Emby @@ -42,7 +44,9 @@ namespace ErsatzTV.Infrastructure.Emby
string fields =
"Path,Genres,Tags,DateCreated,Etag,Overview,Taglines,Studios,People,ProductionYear,PremiereDate,MediaSources,OfficialRating",
[Query]
string includeItemTypes = "Series");
string includeItemTypes = "Series",
[Query]
bool recursive = true);
[Get("/Items")]
public Task<EmbyLibraryItemsResponse> GetSeasonLibraryItems(
@ -53,7 +57,9 @@ namespace ErsatzTV.Infrastructure.Emby @@ -53,7 +57,9 @@ namespace ErsatzTV.Infrastructure.Emby
[Query]
string fields = "Path,DateCreated,Etag,Taglines",
[Query]
string includeItemTypes = "Season");
string includeItemTypes = "Season",
[Query]
bool recursive = true);
[Get("/Items")]
public Task<EmbyLibraryItemsResponse> GetEpisodeLibraryItems(
@ -64,6 +70,8 @@ namespace ErsatzTV.Infrastructure.Emby @@ -64,6 +70,8 @@ namespace ErsatzTV.Infrastructure.Emby
[Query]
string fields = "Path,DateCreated,Etag,Overview,ProductionYear,PremiereDate,MediaSources,LocationType",
[Query]
string includeItemTypes = "Episode");
string includeItemTypes = "Episode",
[Query]
bool recursive = true);
}
}

16
ErsatzTV.Infrastructure/Jellyfin/IJellyfinApi.cs

@ -36,7 +36,9 @@ namespace ErsatzTV.Infrastructure.Jellyfin @@ -36,7 +36,9 @@ namespace ErsatzTV.Infrastructure.Jellyfin
[Query]
string fields = "Path,Genres,Tags,DateCreated,Etag,Overview,Taglines,Studios,People,OfficialRating",
[Query]
string includeItemTypes = "Movie");
string includeItemTypes = "Movie",
[Query]
bool recursive = true);
[Get("/Items")]
public Task<JellyfinLibraryItemsResponse> GetShowLibraryItems(
@ -49,7 +51,9 @@ namespace ErsatzTV.Infrastructure.Jellyfin @@ -49,7 +51,9 @@ namespace ErsatzTV.Infrastructure.Jellyfin
[Query]
string fields = "Path,Genres,Tags,DateCreated,Etag,Overview,Taglines,Studios,People,OfficialRating",
[Query]
string includeItemTypes = "Series");
string includeItemTypes = "Series",
[Query]
bool recursive = true);
[Get("/Items")]
public Task<JellyfinLibraryItemsResponse> GetSeasonLibraryItems(
@ -62,7 +66,9 @@ namespace ErsatzTV.Infrastructure.Jellyfin @@ -62,7 +66,9 @@ namespace ErsatzTV.Infrastructure.Jellyfin
[Query]
string fields = "Path,DateCreated,Etag,Taglines",
[Query]
string includeItemTypes = "Season");
string includeItemTypes = "Season",
[Query]
bool recursive = true);
[Get("/Items")]
public Task<JellyfinLibraryItemsResponse> GetEpisodeLibraryItems(
@ -75,6 +81,8 @@ namespace ErsatzTV.Infrastructure.Jellyfin @@ -75,6 +81,8 @@ namespace ErsatzTV.Infrastructure.Jellyfin
[Query]
string fields = "Path,DateCreated,Etag,Overview",
[Query]
string includeItemTypes = "Episode");
string includeItemTypes = "Episode",
[Query]
bool recursive = true);
}
}

Loading…
Cancel
Save