aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Plugin.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-14 12:06:46 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-08-14 12:06:46 -0400
commitee1fa6e816f0bf836c21a5901bf3d282f6e45dfa (patch)
treef81c932fde7ffce5554741725cbe5c3f40d25f14 /MediaBrowser.Api/Plugin.cs
parente2fe4174da0b814486a6dac60b066eec8075040d (diff)
Implemented some IBN functionality - GetPerson, GetYear, GetStudio, GetGenre
Diffstat (limited to 'MediaBrowser.Api/Plugin.cs')
-rw-r--r--MediaBrowser.Api/Plugin.cs16
1 files changed, 12 insertions, 4 deletions
diff --git a/MediaBrowser.Api/Plugin.cs b/MediaBrowser.Api/Plugin.cs
index 353325316..efbd9725e 100644
--- a/MediaBrowser.Api/Plugin.cs
+++ b/MediaBrowser.Api/Plugin.cs
@@ -49,17 +49,25 @@ namespace MediaBrowser.Api
{
return new UsersHandler();
}
- else if (localPath.EndsWith("/api/genre", StringComparison.OrdinalIgnoreCase))
+ else if (localPath.EndsWith("/api/itemswithgenre", StringComparison.OrdinalIgnoreCase))
{
- return new GenreHandler();
+ return new ItemsWithGenreHandler();
}
else if (localPath.EndsWith("/api/genres", StringComparison.OrdinalIgnoreCase))
{
return new GenresHandler();
}
- else if (localPath.EndsWith("/api/studio", StringComparison.OrdinalIgnoreCase))
+ else if (localPath.EndsWith("/api/itemswithyear", StringComparison.OrdinalIgnoreCase))
{
- return new StudioHandler();
+ return new ItemsWithYearHandler();
+ }
+ else if (localPath.EndsWith("/api/years", StringComparison.OrdinalIgnoreCase))
+ {
+ return new YearsHandler();
+ }
+ else if (localPath.EndsWith("/api/itemswithstudio", StringComparison.OrdinalIgnoreCase))
+ {
+ return new ItemsWithStudioHandler();
}
else if (localPath.EndsWith("/api/studios", StringComparison.OrdinalIgnoreCase))
{