diff --git a/.gitignore b/.gitignore index 8958124..ae29688 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,88 @@ -*.pyc -settings.json - +node_modules/ +!/.gitattributes +!/.projen/tasks.json +!/.github/workflows/pull-request-lint.yml +.DS_Store +node_modules +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST +*.manifest +*.spec +pip-log.txt +pip-delete-this-directory.txt +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ +*.mo +*.pot +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal +instance/ +.webassets-cache +.scrapy +docs/_build/ +.pybuilder/ +target/ +.ipynb_checkpoints +profile_default/ +ipython_config.py +__pypackages__/ +celerybeat-schedule +celerybeat.pid +*.sage.py +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ +.spyderproject +.spyproject +.ropeproject +/site +.mypy_cache/ +.dmypy.json +dmypy.json +.pyre/ +.pytype/ +cython_debug/ +!/setup.py +!/.github/workflows/license_tests.yml +!/.github/workflows/propose_release.yml +!/.github/workflows/publish_alpha.yml +!/.github/workflows/publish_release.yml +!/.github/workflows/skill_tests.yml +!/.github/workflows/update_skill_json.yml diff --git a/__init__.py b/__init__.py index 7f7a710..a22700f 100644 --- a/__init__.py +++ b/__init__.py @@ -156,6 +156,6 @@ def update_index(self): 'it': 'https://www.grimmstories.com/it/grimm_fiabe/', 'nl': 'https://www.grimmstories.com/nl/grimm_sprookjes/'} self.index = {} - self.index.update(self.get_index(url_andersen["en"] + "list")) + self.index.update(self.get_index(url_andersen[(self.lang.split("-")[-2] or "en")] + "list")) self.index.update(self.get_index(url_grimm[(self.lang.split("-")[-2] or "en")] + "list"))