fix themoviedb api

This commit is contained in:
jxxghp
2025-07-31 08:40:24 +08:00
parent 8b708e8939
commit ca51880798
8 changed files with 297 additions and 1 deletions
@@ -16,6 +16,14 @@ class Network(TMDb):
"""
return self._request_obj(self._urls["details"] % network_id)
async def async_details(self, network_id):
"""
Get a networks details by id.(异步版本)
:param network_id: int
:return:
"""
return await self._async_request_obj(self._urls["details"] % network_id)
def alternative_names(self, network_id):
"""
Get the alternative names of a network.
@@ -27,6 +35,17 @@ class Network(TMDb):
key="results"
)
async def async_alternative_names(self, network_id):
"""
Get the alternative names of a network.(异步版本)
:param network_id: int
:return:
"""
return await self._async_request_obj(
self._urls["alternative_names"] % network_id,
key="results"
)
def images(self, network_id):
"""
Get the TV network logos by id.
@@ -37,3 +56,14 @@ class Network(TMDb):
self._urls["images"] % network_id,
key="logos"
)
async def async_images(self, network_id):
"""
Get the TV network logos by id.(异步版本)
:param network_id: int
:return:
"""
return await self._async_request_obj(
self._urls["images"] % network_id,
key="logos"
)