Update info.py
Added support for streamingwatch
This commit is contained in:
@@ -47,6 +47,11 @@ def get_info_tmdb(tmbda,ismovie,type):
|
|||||||
date = date.split("-")[0]
|
date = date.split("-")[0]
|
||||||
print("Real date",date)
|
print("Real date",date)
|
||||||
return showname,date
|
return showname,date
|
||||||
|
elif type == "StreamingWatch":
|
||||||
|
date = show.first_air_date
|
||||||
|
date = date.split("-")[0]
|
||||||
|
print("Real date",date)
|
||||||
|
return showname,date
|
||||||
|
|
||||||
elif ismovie == 1:
|
elif ismovie == 1:
|
||||||
movie = Movie()
|
movie = Movie()
|
||||||
@@ -75,6 +80,11 @@ def get_info_tmdb(tmbda,ismovie,type):
|
|||||||
date = date.split("-")[0]
|
date = date.split("-")[0]
|
||||||
print("Real date",date)
|
print("Real date",date)
|
||||||
return showname,date
|
return showname,date
|
||||||
|
elif type == "StreamingWatch":
|
||||||
|
date = show.release_date
|
||||||
|
date = date.split("-")[0]
|
||||||
|
print("Real date",date)
|
||||||
|
return showname,date
|
||||||
|
|
||||||
def get_info_imdb(imdb_id, ismovie, type):
|
def get_info_imdb(imdb_id, ismovie, type):
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user