From aac272eefb33bf18e406d18c309c7d072c1454fb Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 13 May 2020 19:29:32 +0200 Subject: [PATCH] debug --- src/be/nikiroo/fanfix/library/WebLibraryServer.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/be/nikiroo/fanfix/library/WebLibraryServer.java b/src/be/nikiroo/fanfix/library/WebLibraryServer.java index c4be663..7eeecb0 100644 --- a/src/be/nikiroo/fanfix/library/WebLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/WebLibraryServer.java @@ -72,6 +72,7 @@ public class WebLibraryServer implements Runnable { opts += "|wl"; if (!bl) opts += "|bl"; + opts += "|"; this.token = wookie + "~" + CookieUtils.generateCookie(wookie + subkey + opts, 0) @@ -103,9 +104,9 @@ public class WebLibraryServer implements Runnable { this.token = token; this.success = true; - this.rw = opts.contains("|rw"); - this.wl = !opts.contains("|wl"); - this.bl = !opts.contains("|bl"); + this.rw = opts.contains("|rw|"); + this.wl = !opts.contains("|wl|"); + this.bl = !opts.contains("|bl|"); } } } @@ -1083,6 +1084,11 @@ public class WebLibraryServer implements Runnable { private List metas(LoginResult login) throws IOException { BasicLibrary lib = Instance.getInstance().getLibrary(); + System.out.println("Whitelist: " + whitelist); + System.out.println("Blacklist: " + blacklist); + System.out.println("isWl: " + login.isWl()); + System.out.println("isBl: " + login.isBl()); + List metas = new ArrayList(); for (MetaData meta : lib.getList().getMetas()) { if (isAllowed(meta, login)) { -- 2.27.0