mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-30 11:38:32 -07:00
Added a new Job. Plex Recently Added, this is a slimmed down version of the Plex Sync job, this will just scan the recently added list and not the whole library. I'd reccomend running this very regulary and the full scan not as regular.
This commit is contained in:
parent
41d5ef5f41
commit
eeaf614a29
21 changed files with 152 additions and 3651 deletions
|
@ -147,6 +147,15 @@ namespace Ombi.Api.Plex
|
|||
return await Api.Request<PlexFriends>(request);
|
||||
}
|
||||
|
||||
public async Task<PlexMetadata> GetRecentlyAdded(string authToken, string uri, string sectionId)
|
||||
{
|
||||
var request = new Request($"library/sections/{sectionId}/recentlyAdded", uri, HttpMethod.Get);
|
||||
AddHeaders(request, authToken);
|
||||
AddLimitHeaders(request, 0, 50);
|
||||
|
||||
return await Api.Request<PlexMetadata>(request);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds the required headers and also the authorization header
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue