9 Commits
2 changed files with 7 additions and 3 deletions
+1 -2
View File
@@ -15,5 +15,4 @@ Download and extract the [latest release](https://github.com/sugoidogo/obs-start
3. ...
4. Profit?
## Support
- Get support via [Discord](https://discord.gg/zxDnYSvMNw)
- Give support via [PayPal](https://paypal.me/SugoiDogo)
Support information for all my software is on my [GitHub profile](https://github.com/sugoidogo)
+6 -1
View File
@@ -16,6 +16,8 @@ def apiCall(requestInfo):
#print(response)
return response
except HTTPError as error:
if(error.code==401):
return get_token()
stderr.write(vars(requestInfo)+'\n')
stderr.write(error.read().decode()+'\n')
raise error
@@ -74,9 +76,12 @@ def main():
command=command.replace('$USER_INPUT',response['data'][0]['user_input'])
print(command)
from os.path import dirname
subprocess.Popen(command,cwd=dirname(command))
subprocess.Popen(command,cwd=dirname(command),shell=True)
except KeyError:
pass
except:
import traceback
traceback.print_exc()
time.sleep(1)
def get_token():