Skip to content

Commit

Permalink
enable Danish
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jul 23, 2024
1 parent 3c36cca commit fa1de0f
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions boofilsic/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@
"en": _("English"),
"zh-hans": _("Simplified Chinese"),
"zh-hant": _("Traditional Chinese"),
"da": _("Danish"),
}

LANGUAGES = SUPPORTED_UI_LANGUAGES.items()
Expand Down
2 changes: 1 addition & 1 deletion catalog/sites/imdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
Expand Down
2 changes: 0 additions & 2 deletions catalog/sites/tmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 0 additions & 1 deletion locale/da_DK/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -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."

2 changes: 1 addition & 1 deletion locale/zh_Hans/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ msgstr ""

#: common/models/lang.py:44
msgid "Danish"
msgstr ""
msgstr "丹麦语"

#: common/models/lang.py:45
msgid "German"
Expand Down
2 changes: 1 addition & 1 deletion locale/zh_Hant/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ msgstr ""

#: common/models/lang.py:44
msgid "Danish"
msgstr ""
msgstr "丹麥語"

#: common/models/lang.py:45
msgid "German"
Expand Down

0 comments on commit fa1de0f

Please sign in to comment.