diff --git a/boofilsic/settings.py b/boofilsic/settings.py index ce37a99d..e4ddd173 100644 --- a/boofilsic/settings.py +++ b/boofilsic/settings.py @@ -425,6 +425,7 @@ "en": _("English"), "zh-hans": _("Simplified Chinese"), "zh-hant": _("Traditional Chinese"), + "da": _("Danish"), } LANGUAGES = SUPPORTED_UI_LANGUAGES.items() diff --git a/catalog/sites/imdb.py b/catalog/sites/imdb.py index faf09b56..4ebc9f8a 100644 --- a/catalog/sites/imdb.py +++ b/catalog/sites/imdb.py @@ -87,7 +87,7 @@ def scrape_imdb(self): "genre": ( [x["text"] for x in d["genres"]["genres"]] if d.get("genres") else [] ), - "brief": d.get("plot", {}).get("plotText", {}).get("plainText", ""), + "brief": (d.get("plot") or {}).get("plotText", {}).get("plainText", ""), "cover_image_url": ( d["primaryImage"].get("url") if d.get("primaryImage") else None ), diff --git a/catalog/sites/tmdb.py b/catalog/sites/tmdb.py index 8af042ec..592069bf 100644 --- a/catalog/sites/tmdb.py +++ b/catalog/sites/tmdb.py @@ -50,8 +50,6 @@ def _get_preferred_languages(): def search_tmdb_by_imdb_id(imdb_id): - if not settings.TMDB_API3_KEY or settings.TMDB_API3_KEY == "TESTONLY": - return {} tmdb_api_url = f"https://api.themoviedb.org/3/find/{imdb_id}?api_key={settings.TMDB_API3_KEY}&language={TMDB_DEFAULT_LANG}&external_source=imdb_id" try: return BasicDownloader(tmdb_api_url).download().json() diff --git a/locale/da_DK/LC_MESSAGES/django.po b/locale/da_DK/LC_MESSAGES/django.po index 1465ab72..a400b7ad 100644 --- a/locale/da_DK/LC_MESSAGES/django.po +++ b/locale/da_DK/LC_MESSAGES/django.po @@ -4743,4 +4743,3 @@ msgstr "Filen er uploadet og vil blive importeret snart." #: users/views/data.py:202 users/views/data.py:242 msgid "Invalid file." msgstr "Ugyldig fil." - diff --git a/locale/zh_Hans/LC_MESSAGES/django.po b/locale/zh_Hans/LC_MESSAGES/django.po index 1ed94936..515ae124 100644 --- a/locale/zh_Hans/LC_MESSAGES/django.po +++ b/locale/zh_Hans/LC_MESSAGES/django.po @@ -1528,7 +1528,7 @@ msgstr "" #: common/models/lang.py:44 msgid "Danish" -msgstr "" +msgstr "丹麦语" #: common/models/lang.py:45 msgid "German" diff --git a/locale/zh_Hant/LC_MESSAGES/django.po b/locale/zh_Hant/LC_MESSAGES/django.po index fb0cdcea..2a5dd0f8 100644 --- a/locale/zh_Hant/LC_MESSAGES/django.po +++ b/locale/zh_Hant/LC_MESSAGES/django.po @@ -1528,7 +1528,7 @@ msgstr "" #: common/models/lang.py:44 msgid "Danish" -msgstr "" +msgstr "丹麥語" #: common/models/lang.py:45 msgid "German"