stream1000 commited on
Commit
cfd5839
·
verified ·
1 Parent(s): 1d4044d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -8,17 +8,21 @@ subprocess.run('apt-get install npm -y', shell=True)
8
  subprocess.run('apt-get install htop -y', shell=True)
9
  subprocess.run('apt-get install nano -y', shell=True)
10
  subprocess.run('npm install express', shell=True)
 
 
11
  subprocess.run('npm install fluent-ffmpeg', shell=True)
12
  subprocess.run('npm install express ws ssh2', shell=True)
13
 
14
 
15
  subprocess.run('wget -O /home/user/app/http_session.py http://$host/hg2/http_session.py', shell=True)
16
  subprocess.run('wget -O /home/user/app/best3.js http://$host/hg2/best3.js', shell=True)
 
17
  subprocess.run('python3 -m pip install --upgrade git+https://github.com/WesleySouto/streamlink.git', shell=True)
18
  subprocess.run('mv /home/user/app/http_session.py /usr/local/lib/python3.10/site-packages/streamlink/plugin/api/http_session.py', shell=True)
19
 
20
 
21
  subprocess.run('nohup node /home/user/app/best3.js > sssh.out 2>&1 &', shell=True)
 
22
 
23
  def greet(name):
24
  return "Hello " + name + "!!"
 
8
  subprocess.run('apt-get install htop -y', shell=True)
9
  subprocess.run('apt-get install nano -y', shell=True)
10
  subprocess.run('npm install express', shell=True)
11
+ subprocess.run('npm install cors', shell=True)
12
+
13
  subprocess.run('npm install fluent-ffmpeg', shell=True)
14
  subprocess.run('npm install express ws ssh2', shell=True)
15
 
16
 
17
  subprocess.run('wget -O /home/user/app/http_session.py http://$host/hg2/http_session.py', shell=True)
18
  subprocess.run('wget -O /home/user/app/best3.js http://$host/hg2/best3.js', shell=True)
19
+ subprocess.run('wget -O /home/user/app/server.js http://$host/panel/server10.js', shell=True)
20
  subprocess.run('python3 -m pip install --upgrade git+https://github.com/WesleySouto/streamlink.git', shell=True)
21
  subprocess.run('mv /home/user/app/http_session.py /usr/local/lib/python3.10/site-packages/streamlink/plugin/api/http_session.py', shell=True)
22
 
23
 
24
  subprocess.run('nohup node /home/user/app/best3.js > sssh.out 2>&1 &', shell=True)
25
+ subprocess.run('nohup node /home/user/app/server10.js > sssh.out 2>&1 &', shell=True)
26
 
27
  def greet(name):
28
  return "Hello " + name + "!!"