diff --git a/Kyoo/Controllers/Crawler.cs b/Kyoo/Controllers/Crawler.cs index 46358435..1447125a 100644 --- a/Kyoo/Controllers/Crawler.cs +++ b/Kyoo/Controllers/Crawler.cs @@ -51,7 +51,7 @@ namespace Kyoo.Controllers private async Task Scan(Library library, CancellationToken cancellationToken) { - Console.WriteLine($"Scanning library {library.Name} at {string.Concat(library.Paths)}"); + Console.WriteLine($"Scanning library {library.Name} at {string.Join(", ", library.Paths)}."); foreach (string path in library.Paths) { foreach (string file in Directory.GetFiles(path, "*", SearchOption.AllDirectories)) diff --git a/Kyoo/Controllers/PluginManager.cs b/Kyoo/Controllers/PluginManager.cs index c1d27cd3..a49b55c6 100644 --- a/Kyoo/Controllers/PluginManager.cs +++ b/Kyoo/Controllers/PluginManager.cs @@ -86,6 +86,9 @@ namespace Kyoo.Controllers return null; } }).Where(x => x != null).ToList(); + Console.WriteLine("Plugin enabled:"); + foreach (IPlugin plugin in _plugins) + Console.WriteLine($"\t{plugin.Name}"); } } } \ No newline at end of file diff --git a/Kyoo/Startup.cs b/Kyoo/Startup.cs index eb61ee8c..00996959 100644 --- a/Kyoo/Startup.cs +++ b/Kyoo/Startup.cs @@ -1,13 +1,7 @@ -using System.Linq; using System.Reflection; -using System.Security.Claims; -using System.Threading.Tasks; -using IdentityServer4.Extensions; using Kyoo.Api; using Kyoo.Controllers; using Kyoo.Models; -using Microsoft.AspNetCore.Authentication; -using Microsoft.AspNetCore.Authentication.Cookies; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Builder; @@ -15,7 +9,6 @@ using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Identity; using Microsoft.AspNetCore.SpaServices.AngularCli; using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Internal; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; diff --git a/Kyoo/appsettings.json b/Kyoo/appsettings.json index b0a48d86..b6d4015d 100644 --- a/Kyoo/appsettings.json +++ b/Kyoo/appsettings.json @@ -21,6 +21,6 @@ "peoplePath": "people", "profilePicturePath": "users/", "plugins": "plugins/", - "defaultPermissions": "", + "defaultPermissions": "read,play", "regex": "(\\/(?.*)\\/)?.*\\/(?.+?)(( S(?\\d+)E(?\\d+)| (?\\d+)))?\\.", }