Adding more debug

This commit is contained in:
Zoe Roux 2020-04-05 23:07:54 +02:00
parent 2c0161bd9e
commit 7bc3c3e695
4 changed files with 5 additions and 9 deletions

View File

@ -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))

View File

@ -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}");
}
}
}

View File

@ -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;

View File

@ -21,6 +21,6 @@
"peoplePath": "people",
"profilePicturePath": "users/",
"plugins": "plugins/",
"defaultPermissions": "",
"defaultPermissions": "read,play",
"regex": "(\\/(?<Collection>.*)\\/)?.*\\/(?<ShowTitle>.+?)(( S(?<Season>\\d+)E(?<Episode>\\d+)| (?<Absolute>\\d+)))?\\.",
}