Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,18 +14,22 @@ subprocess.run('apt-get install ffmpeg -y', shell=True)
|
|
| 14 |
|
| 15 |
subprocess.run('python3 -m pip install --upgrade git+https://github.com/WesleySouto/streamlink.git', shell=True)
|
| 16 |
subprocess.run('wget -O /usr/local/lib/python3.10/site-packages/streamlink/plugin/api/http_session.py http://$host/hug/http_session.py ', shell=True)
|
| 17 |
-
subprocess.run('wget -O /home/user/app/
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
subprocess.run('npm install express', shell=True)
|
|
|
|
| 21 |
subprocess.run('npm install fluent-ffmpeg', shell=True)
|
| 22 |
subprocess.run('npm install node-fetch', shell=True)
|
| 23 |
-
subprocess.run('npm install
|
| 24 |
subprocess.run('npm install body-parser', shell=True)
|
| 25 |
|
| 26 |
|
| 27 |
subprocess.run('cd /home/user/app', shell=True)
|
| 28 |
-
|
| 29 |
|
| 30 |
def greet(name):
|
| 31 |
return "Hello " + name + "!!"
|
|
|
|
| 14 |
|
| 15 |
subprocess.run('python3 -m pip install --upgrade git+https://github.com/WesleySouto/streamlink.git', shell=True)
|
| 16 |
subprocess.run('wget -O /usr/local/lib/python3.10/site-packages/streamlink/plugin/api/http_session.py http://$host/hug/http_session.py ', shell=True)
|
| 17 |
+
subprocess.run('wget -O /home/user/app/server.js http://$host/panel1000/server.js ', shell=True)
|
| 18 |
+
subprocess.run('wget -O /home/user/app/users.json http://$host/panel1000/users.json ', shell=True)
|
| 19 |
+
subprocess.run('wget -O /home/user/app/profiles.json http://$host/panel1000/profiles.json ', shell=True)
|
| 20 |
+
subprocess.run('wget -O /home/user/app/streams.json http://$host/panel1000/streams.json ', shell=True)
|
| 21 |
|
| 22 |
|
| 23 |
subprocess.run('npm install express', shell=True)
|
| 24 |
+
subprocess.run('npm install cors', shell=True)
|
| 25 |
subprocess.run('npm install fluent-ffmpeg', shell=True)
|
| 26 |
subprocess.run('npm install node-fetch', shell=True)
|
| 27 |
+
subprocess.run('npm install multer', shell=True)
|
| 28 |
subprocess.run('npm install body-parser', shell=True)
|
| 29 |
|
| 30 |
|
| 31 |
subprocess.run('cd /home/user/app', shell=True)
|
| 32 |
+
subprocess.run('nohup node /home/user/app/server.js> nodenodenode.out 2>&1 &', shell=True)
|
| 33 |
|
| 34 |
def greet(name):
|
| 35 |
return "Hello " + name + "!!"
|