fix: use fixed tld list
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user