add tmdb person api

This commit is contained in:
jxxghp
2023-07-30 08:26:06 +08:00
parent d308a3d9de
commit f6978b916b
5 changed files with 105 additions and 18 deletions

View File

@ -372,3 +372,17 @@ class TheMovieDbModule(_ModuleBase):
:param tmdbid: TMDBID
"""
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)