First Commit

This commit is contained in:
Mister Rajoy
2020-11-08 02:19:22 +01:00
parent 41c13bb80c
commit 09b3c26df0
11 changed files with 842 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
using System;
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Net;
using MediaBrowser.Model.Services;
using Microsoft.Extensions.Logging;
using MediaBrowser.Model.Branding;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Api;
namespace Jellyfin.Plugin.Css.Api
{
[Route("/Css/Set", "POST", Summary = "Downloads theme songs")]
[Authenticated]
public class DownloadRequest : IReturnVoid
{
public string css {get;set;}
}
public class cssService : IService
{
private readonly CssManager _themeSongsManager;
private readonly ILogger<BrandingService> _logger;
public cssService(
ILogger<BrandingService> logger, IServerConfigurationManager serverConfigurationManager, IHttpResultFactory httpResultFactory)
{
_themeSongsManager = new CssManager(logger, serverConfigurationManager, httpResultFactory);
_logger = logger;
}
public void Post(DownloadRequest request)
{
_logger.LogInformation(request.css + "Will be setted");
_themeSongsManager.setCss();
_logger.LogInformation("Completed");
}
}
}