fix: use fixed tld list

This commit is contained in:
2026-06-16 10:56:12 +02:00
parent 0a8775dfc9
commit 873303661a
9 changed files with 2651 additions and 1516 deletions
+1 -3
View File
@@ -2,7 +2,6 @@ import logging
import sys
from cool_domain import PKG_NAME, PKG_VERSION
from cool_domain.cache import Cache
from cool_domain.constants import LANGS
from cool_domain.factory import Factory
from cool_domain.logs import setup_logs
@@ -18,8 +17,7 @@ def main() -> int:
langs = LANGS
langs["custom"] = WordList("custom", params.custom_words)
with (
Cache(filepath=params.cache_file, no_load=params.cache) as cache,
TLDList(cache=cache, remote_uri=params.tld_list_uri) as tld_list,
TLDList() as tld_list,
langs[params.lang] as word_list,
):
factory = Factory(tld_list=tld_list, word_list=word_list, words=params.words)