Files
MoviePilot/app/modules/themoviedb/tmdbv3api/objs/credit.py
2025-07-31 08:40:24 +08:00

24 lines
584 B
Python

from ..tmdb import TMDb
class Credit(TMDb):
_urls = {
"details": "/credit/%s"
}
def details(self, credit_id):
"""
Get a movie or TV credit details by id.
:param credit_id: int
:return:
"""
return self._request_obj(self._urls["details"] % credit_id)
async def async_details(self, credit_id):
"""
Get a movie or TV credit details by id.(异步版本)
:param credit_id: int
:return:
"""
return await self._async_request_obj(self._urls["details"] % credit_id)