This commit is contained in:
deathbybandaid 2023-01-06 10:35:00 -05:00
parent 1cf0b631df
commit 736a968b63
2 changed files with 10 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/python #!/usr/bin/python3
import os # import os
# from sys import argv from sys import argv
# title = show title # title = show title
@ -15,11 +15,11 @@ import os
# response = requests.post(tdarr_url, json=payload, headers=headers) # response = requests.post(tdarr_url, json=payload, headers=headers)
# fp = open('/opt/testlog.log', 'a', 0) fp = open('/opt/testlog.log', 'a', 0)
# fp.write("Testing") fp.write("Testing")
# fp.write("%s" % argv) fp.write("%s" % argv)
"""
def main(): def main():
SCRIPT_PATH = os.path.realpath(__file__) SCRIPT_PATH = os.path.realpath(__file__)
SCRIPT_DIR = os.path.dirname(SCRIPT_PATH) SCRIPT_DIR = os.path.dirname(SCRIPT_PATH)
@ -49,3 +49,4 @@ def main():
if __name__ == "__main__": if __name__ == "__main__":
main() main()
"""

2
tdarr_inform.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
/usr/bin/python3 /opt/arr_to_tdarr/tdarr_inform.py