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

Rename app.py to run.py

Browse files
Files changed (1) hide show
  1. app.py → run.py +1 -5
app.py → run.py RENAMED
@@ -1,7 +1,6 @@
1
  from flask import Flask, jsonify, abort
2
  from filmpertutti import get_stream_link
3
  import os
4
- print("I SEE")
5
  TMDB_KEY = os.environ.get('TMDB_KEY')
6
  DOMAIN = os.environ.get('DOMAIN')
7
  app = Flask(__name__)
@@ -18,9 +17,7 @@ MANIFEST = {
18
  }
19
 
20
  def respond_with(data):
21
- print("HELLO 1")
22
  resp = jsonify(data)
23
- print("HELLO 2")
24
  resp.headers['Access-Control-Allow-Origin'] = '*'
25
  resp.headers['Access-Control-Allow-Headers'] = '*'
26
  return resp
@@ -31,12 +28,11 @@ def addon_manifest():
31
 
32
  @app.route('/')
33
  def root():
34
- return "Hello, this is my Flask application's root!"
35
 
36
 
37
  @app.route('/stream/<type>/<id>.json',methods=['GET'])
38
  def addon_stream(type, id):
39
- print("WOA")
40
  if type not in MANIFEST['types']:
41
  abort(404)
42
  print(id)
 
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__)
 
17
  }
18
 
19
  def respond_with(data):
 
20
  resp = jsonify(data)
 
21
  resp.headers['Access-Control-Allow-Origin'] = '*'
22
  resp.headers['Access-Control-Allow-Headers'] = '*'
23
  return resp
 
28
 
29
  @app.route('/')
30
  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)