ming 3 سال پیش
والد
کامیت
d246b6802e
2فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 2 0
      index2.html
  2. 1 4
      main.py

+ 2 - 0
index2.html

@@ -75,6 +75,8 @@
         <select id="avatar" class='avatar'>
         <option value="6">Angus</option>
         <option value="7">Peggy</option>
+        <option value="8">Nina</option>
+        <option value="9">Stacy</option>
       </select>
         <h3 class="fs-subtitle">台詞</h3>
         <input type="text" name='t1' class='txtsrc1' value="" placeholder="1" /> <br/>

+ 1 - 4
main.py

@@ -363,10 +363,7 @@ def call_achor_video_v2(fileName,avatar):
 
     val=random.randint(1000000,9999999)
     ros.chdir('/home/jared/to_video')
-    if avatar ==7:
-        ros.system('./p7.sh '+str(val)+' &')
-    else :
-        ros.system('./p6.sh '+str(val)+' &')
+    ros.system('./p'+str(avatar)+'.sh '+str(val)+' &')
 
     while True:
         print('waiting...')