From 73363e0f1ae3d802d050bb5f64a2f00704f96ee7 Mon Sep 17 00:00:00 2001 From: beepboopbelong Date: Mon, 13 Apr 2020 21:13:13 +0200 Subject: [PATCH] siteFactory tried parsing empty url --- source/inputhandler.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/inputhandler.d b/source/inputhandler.d index ea5a4ca..42d1574 100644 --- a/source/inputhandler.d +++ b/source/inputhandler.d @@ -15,6 +15,9 @@ import sites.nhentai; +/ void siteFactory(string url) { + // if url is empty just return + if(url == "") return; + immutable string hentaicafe_indicator = "/hc.fyi/"; immutable string nhentai_indicator = "/g/";