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 1da5836770
commit f318cdc7c4
+10
View File
@@ -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):