add tmdb person api

This commit is contained in:
jxxghp
2023-07-30 08:40:30 +08:00
parent f6978b916b
commit 4ab54b7672
4 changed files with 44 additions and 45 deletions

View File

@ -373,16 +373,16 @@ class TheMovieDbModule(_ModuleBase):
"""
return self.tmdb.get_tv_credits(tmdbid=tmdbid)
def credit_details(self, credit_id: str) -> List[dict]:
"""
根据TMDBID查询演职员详情
:param credit_id: 人物ID
"""
return self.tmdb.get_credit_details(credit_id=credit_id)
def person_detail(self, person_id: int) -> dict:
"""
根据TMDBID查询人物详情
:param person_id: 人物ID
"""
return self.tmdb.get_person_detail(person_id=person_id)
def person_credits(self, person_id: int) -> dict:
"""
根据TMDBID查询人物参演详情
:param person_id: 人物ID
"""
return self.tmdb.get_person_credits(person_id=person_id)