From 868b9817a05d10d05fdb97a382030ac8d3c6ff26 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sun, 17 Feb 2013 10:32:52 +1100 Subject: [PATCH] Get MakeMKV port number from a more reliable field --- bluplayer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bluplayer.py b/bluplayer.py index ab10d99..9259b83 100755 --- a/bluplayer.py +++ b/bluplayer.py @@ -152,7 +152,9 @@ class MakeMkv(QObject): makemkvcon = MakeMkvCon(["stream", "disc:%s" % disc_number]) for key, line in makemkvcon: if key == "MSG" and line[0] == "4500": - url = "http://localhost:%s/" % line[6] + # Sometimes the port in field 6 is wrong + port = line[5].split(":")[1] + url = "http://localhost:%s/" % port self.load_titles(url) elif key == "MSG": self.status.emit(line[3]) -- 2.39.2