From 25df47b46ade1a5d345239932c9bbccbdb2b74f7 Mon Sep 17 00:00:00 2001 From: "Mr.Servo" Date: Thu, 26 Feb 2026 09:54:53 +0100 Subject: [PATCH] [OpenATVreader] v2.2 tiny bugfix --- src/forumparser.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/forumparser.py b/src/forumparser.py index f346950..1419207 100644 --- a/src/forumparser.py +++ b/src/forumparser.py @@ -154,7 +154,7 @@ def convert2int(valueStr, fallbackInt=0): def checkServerStatus(self): atvpglobals.BASEURL = bytes.fromhex("687474703A2F2F7265616465722E6F70656E612E7476E"[:-1]).decode() - errMsg, htmlData = self.getHTMLdata(atvpglobals.BASEURL) + errMsg, htmlData = self.getHTMLdata(f"{atvpglobals.BASEURL}/index.php") return errMsg def parsePost(self, postId=""): @@ -238,13 +238,13 @@ def main(argv): # shell interface except GetoptError as error: print(f"ERROR: {error}\n{helpstring}") exit(2) + errMsg = fparser.checkServerStatus() + if errMsg: + print("ERROR:", errMsg) + exit(2) for opt, arg in opts: opt = opt.lower().strip() arg = arg.strip() - errMsg = fparser.checkServerStatus() - if errMsg: - print("ERROR:", errMsg) - exit(2) if not opts or opt == "-h": print("Usage 'forumparser v1.0': python forumparser.py [option...] \n" "Example: python forumparser.py -l 1 -j lastest.json\n"