we can get info from show now
This commit is contained in:
@@ -104,3 +104,22 @@ class betaserieUtils():
|
||||
print(response.text)
|
||||
|
||||
return response.status_code
|
||||
|
||||
def series_information(self,show_id,verbose=False):
|
||||
#
|
||||
# Usage
|
||||
#
|
||||
url = "https://api.betaseries.com/shows/display?id="+str(show_id)
|
||||
response = requests.request("GET", url, headers=self.headers, data=self.payload)
|
||||
|
||||
maximum_number_seasons = response.json()['show']['seasons']
|
||||
if verbose : print("maximum_number_seasons: "+str(maximum_number_seasons))
|
||||
|
||||
seasons_details = response.json()['show']['seasons_details']
|
||||
|
||||
if verbose:
|
||||
print("Url request: "+str(url))
|
||||
print(response.text)
|
||||
|
||||
return seasons_details,maximum_number_seasons
|
||||
|
||||
|
||||
Reference in New Issue
Block a user