Skip to content

Commit bb8f2dd

Browse files
committed
fix: remove unnecessary TVDB sources and enhance external ID validation in media item creation
1 parent 3cca795 commit bb8f2dd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/integrations/imports/kitsu.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,6 @@ def create_or_get_item(media_type, kitsu_metadata, mapping_lookup, kitsu_mu_mapp
223223
sites = [
224224
f"myanimelist/{media_type}",
225225
"mangaupdates",
226-
"thetvdb/season",
227-
"thetvdb",
228-
"thetvdb/series",
229226
]
230227

231228
mappings = {
@@ -259,7 +256,8 @@ def create_or_get_item(media_type, kitsu_metadata, mapping_lookup, kitsu_mu_mapp
259256
source = Sources.MANGAUPDATES.value
260257
break
261258

262-
if not media_id:
259+
# Farmagia (49333) shows MAL external_id == "anime"
260+
if not media_id or not media_id.isdigit():
263261
media_title = kitsu_metadata["attributes"]["canonicalTitle"]
264262
msg = f"{media_title}: No valid external ID found."
265263
raise MediaImportError(msg)

0 commit comments

Comments
 (0)