Adjust text report path

This commit is contained in:
hockeygoalie35 2024-02-07 23:30:09 -05:00
parent d8ad588cbe
commit 832e5a035e

View file

@ -247,7 +247,7 @@ class LidarrExtendedAPI:
os.remove(file_to_delete)
def report_status(self, status):
f = open("ARLStatus.txt", "w")
f = open("/custom-services.d/python/ARLStatus.txt", "w")
now = datetime.strftime(datetime.now(),"%b-%d-%Y at %H:%M:%S")
f.write(f"{now}: ARL Token is {status}.{' Please update arlToken in extended.conf' if status=='EXPIRED' else ''}")
f.close()