We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c979c4 commit b0d17deCopy full SHA for b0d17de
app/modules/themoviedb/tmdbapi.py
@@ -404,10 +404,7 @@ def _parse_tmdb_id_from_link(link: str) -> Optional[int]:
404
return int(match.group(1))
405
except Exception:
406
return None
407
- # 兜底:取最后段再取数字前缀
408
- last = link.rsplit("/", 1)[-1]
409
- num_match = re.match(r"^(\d+)", last)
410
- return int(num_match.group(1)) if num_match else None
+ return None
411
412
@staticmethod
413
def __get_names(tmdb_info: dict) -> List[str]:
0 commit comments