mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-21 07:00:30 +01:00
All calls to get items now require passing in a userId. Made the model project portable. Also filled in more api calls.
This commit is contained in:
parent
baedafbeb9
commit
6fbd5cf464
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Common.Net;
|
||||
using MediaBrowser.Controller;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Api.HttpHandlers
|
||||
@@ -19,10 +20,10 @@ namespace MediaBrowser.Api.HttpHandlers
|
||||
|
||||
if (QueryString["unplayed"] == "1")
|
||||
{
|
||||
return ApiService.GetRecentlyAddedUnplayedItems(parent);
|
||||
return Kernel.Instance.GetRecentlyAddedUnplayedItems(parent, UserId);
|
||||
}
|
||||
|
||||
return ApiService.GetRecentlyAddedItems(parent);
|
||||
return Kernel.Instance.GetRecentlyAddedItems(parent, UserId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user