Mythus commited on
Commit
15629b1
·
verified ·
1 Parent(s): 8b2f69a

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +5 -6
run.py CHANGED
@@ -1,8 +1,6 @@
1
  from flask import Flask, jsonify, abort
2
  from filmpertutti import get_stream_link
3
- import os
4
- TMDB_KEY = os.environ.get('TMDB_KEY')
5
- DOMAIN = os.environ.get('DOMAIN')
6
  app = Flask(__name__)
7
 
8
  MANIFEST = {
@@ -31,11 +29,12 @@ def root():
31
  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"
32
 
33
 
34
- @app.route('/stream/<type>/<id>.json',methods=['GET'])
 
35
  def addon_stream(type, id):
36
  if type not in MANIFEST['types']:
37
  abort(404)
38
- print(id)
39
  url = get_stream_link(id) # call the function to dynamically get stream links
40
 
41
 
@@ -44,4 +43,4 @@ def addon_stream(type, id):
44
  return respond_with(streams)
45
 
46
  if __name__ == '__main__':
47
- app.run(host='0.0.0.0', port=8080)
 
1
  from flask import Flask, jsonify, abort
2
  from filmpertutti import get_stream_link
3
+
 
 
4
  app = Flask(__name__)
5
 
6
  MANIFEST = {
 
29
  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"
30
 
31
 
32
+
33
+ @app.route('/stream/<type>/<id>.json')
34
  def addon_stream(type, id):
35
  if type not in MANIFEST['types']:
36
  abort(404)
37
+
38
  url = get_stream_link(id) # call the function to dynamically get stream links
39
 
40
 
 
43
  return respond_with(streams)
44
 
45
  if __name__ == '__main__':
46
+ app.run(host='0.0.0.0', port=8080)