feat 补充剧集全部季年份
This commit is contained in:
@ -33,6 +33,7 @@ class TV(TMDb):
|
||||
"on_the_air": "/tv/on_the_air",
|
||||
"popular": "/tv/popular",
|
||||
"top_rated": "/tv/top_rated",
|
||||
"group_episodes": "/tv/episode_group/%s",
|
||||
}
|
||||
|
||||
def details(self, tv_id, append_to_response="videos,trailers,images,credits,translations"):
|
||||
@ -130,6 +131,17 @@ class TV(TMDb):
|
||||
key="results"
|
||||
)
|
||||
|
||||
def group_episodes(self, group_id):
|
||||
"""
|
||||
查询剧集组所有剧集
|
||||
:param group_id: int
|
||||
:return:
|
||||
"""
|
||||
return self._request_obj(
|
||||
self._urls["group_episodes"] % group_id,
|
||||
key="groups"
|
||||
)
|
||||
|
||||
def external_ids(self, tv_id):
|
||||
"""
|
||||
Get the external ids for a TV show.
|
||||
|
Reference in New Issue
Block a user