mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 07:56:52 +08:00
fix themoviedb api
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import warnings
|
||||
|
||||
from ..tmdb import TMDb
|
||||
|
||||
|
||||
@@ -52,3 +53,40 @@ class Configuration(TMDb):
|
||||
Get the list of timezones used throughout TMDb.
|
||||
"""
|
||||
return self._request_obj(self._urls["timezones"])
|
||||
|
||||
# 异步版本方法
|
||||
async def async_api_configuration(self):
|
||||
"""
|
||||
Get the system wide configuration info.(异步版本)
|
||||
"""
|
||||
return await self._async_request_obj(self._urls["api_configuration"])
|
||||
|
||||
async def async_countries(self):
|
||||
"""
|
||||
Get the list of countries (ISO 3166-1 tags) used throughout TMDb.(异步版本)
|
||||
"""
|
||||
return await self._async_request_obj(self._urls["countries"])
|
||||
|
||||
async def async_jobs(self):
|
||||
"""
|
||||
Get a list of the jobs and departments we use on TMDb.(异步版本)
|
||||
"""
|
||||
return await self._async_request_obj(self._urls["jobs"])
|
||||
|
||||
async def async_languages(self):
|
||||
"""
|
||||
Get the list of languages (ISO 639-1 tags) used throughout TMDb.(异步版本)
|
||||
"""
|
||||
return await self._async_request_obj(self._urls["languages"])
|
||||
|
||||
async def async_primary_translations(self):
|
||||
"""
|
||||
Get a list of the officially supported translations on TMDb.(异步版本)
|
||||
"""
|
||||
return await self._async_request_obj(self._urls["primary_translations"])
|
||||
|
||||
async def async_timezones(self):
|
||||
"""
|
||||
Get the list of timezones used throughout TMDb.(异步版本)
|
||||
"""
|
||||
return await self._async_request_obj(self._urls["timezones"])
|
||||
|
||||
Reference in New Issue
Block a user