public ImageDownloader(IPersistenceManager pm, IConfigManager cm) : base(pm, cm)
        {
            client = new HttpXmlClient(BooruUrl);

            tagsDict = new Dictionary <string, string>()
            {
                { Resources.ImageCmdHandles[0], "lysithea_von_ordelia" },
                { Resources.ImageCmdHandles[1], "holo" },
                { Resources.ImageCmdHandles[2], "fenrir_(shingeki_no_bahamut)" },
                { Resources.ImageCmdHandles[3], "myuri_(spice_and_wolf)" },
                { Resources.ImageCmdHandles[4], "ookami_ryouko" },
                { Resources.ImageCmdHandles[5], "nagatoro" },
                { Resources.ImageCmdHandles[6], "velvet_crowe" },
                { Resources.ImageCmdHandles[7], "hololive" }
            };

            banFilter = new List <string>();
            banFilter.Add("1880445");
        }
        public IndexBuilder(IIndexPersistence persistence, IIndexBackup backup, IConfigManager config)
        {
            #if DEBUG
            urlToUse = TestBooruUrl;
            #else
            urlToUse = DanBooruUrl;
            #endif

            _persistence = persistence;
            _backup      = backup;
            _config      = config;
            client       = new HttpXmlClient(urlToUse);

            numThreads = int.Parse(_config.GetItemByName("NumThreads"));

            if (numThreads > 1)
            {
                throw new NotSupportedException("Multi-threading is not supported in this version of LobitaDownloader. Please set NumThreads to 1.");
            }
        }