mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
fix themoviedb api
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user