mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-25 06:21:23 +08:00
37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
from ..tmdb import TMDb
|
|
|
|
|
|
class Certification(TMDb):
|
|
_urls = {
|
|
"movie_list": "/certification/movie/list",
|
|
"tv_list": "/certification/tv/list",
|
|
}
|
|
|
|
def movie_list(self):
|
|
"""
|
|
Get an up to date list of the officially supported movie certifications on TMDB.
|
|
:return:
|
|
"""
|
|
return self._request_obj(self._urls["movie_list"], key="certifications")
|
|
|
|
async def async_movie_list(self):
|
|
"""
|
|
Get an up to date list of the officially supported movie certifications on TMDB.(异步版本)
|
|
:return:
|
|
"""
|
|
return await self._async_request_obj(self._urls["movie_list"], key="certifications")
|
|
|
|
def tv_list(self):
|
|
"""
|
|
Get an up to date list of the officially supported TV show certifications on TMDB.
|
|
:return:
|
|
"""
|
|
return self._request_obj(self._urls["tv_list"], key="certifications")
|
|
|
|
async def async_tv_list(self):
|
|
"""
|
|
Get an up to date list of the officially supported TV show certifications on TMDB.(异步版本)
|
|
:return:
|
|
"""
|
|
return await self._async_request_obj(self._urls["tv_list"], key="certifications")
|