Update info.py

Added support for streamingwatch
This commit is contained in:
Urlo30
2024-08-19 16:35:29 +02:00
committed by GitHub
Unverified
parent 40207fd23e
commit aa9c52c23a
+10
View File
@@ -47,6 +47,11 @@ def get_info_tmdb(tmbda,ismovie,type):
date = date.split("-")[0]
print("Real date",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:
movie = Movie()
@@ -75,6 +80,11 @@ def get_info_tmdb(tmbda,ismovie,type):
date = date.split("-")[0]
print("Real date",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):