LoremPizza commited on
Commit
d315d52
·
verified ·
1 Parent(s): d506cea

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +3 -1
run.py CHANGED
@@ -63,8 +63,10 @@ def root():
63
  return "Hello, this is a Stremio Addon providing HTTPS Stream for Italian Movies/Series, to install it add /manifest.json to the url and then add it into the Stremio search bar"
64
 
65
  @app.get('/catalog/<type>/<id>.json')
 
66
  def addon_catalog(type, id):
67
  if type != "tv":
 
68
  raise HTTPException(status_code=404)
69
 
70
  catalogs = {"metas": []}
@@ -76,7 +78,7 @@ def addon_catalog(type, id):
76
  "poster": channel["poster"], # Add poster URL if available
77
  "description": f"Watch {channel['title']}"
78
  })
79
-
80
  return respond_with(catalogs)
81
 
82
  @app.get('/meta/<type>/<id>.json')
 
63
  return "Hello, this is a Stremio Addon providing HTTPS Stream for Italian Movies/Series, to install it add /manifest.json to the url and then add it into the Stremio search bar"
64
 
65
  @app.get('/catalog/<type>/<id>.json')
66
+ print(f"Debug: Received request for /catalog/{type}/{id}.json")
67
  def addon_catalog(type, id):
68
  if type != "tv":
69
+ print("Debug: Type is not 'tv'")
70
  raise HTTPException(status_code=404)
71
 
72
  catalogs = {"metas": []}
 
78
  "poster": channel["poster"], # Add poster URL if available
79
  "description": f"Watch {channel['title']}"
80
  })
81
+ print(f"Debug: Returning catalogs: {catalogs}")
82
  return respond_with(catalogs)
83
 
84
  @app.get('/meta/<type>/<id>.json')