diff --git a/lbrynet/lbrynet_daemon/LBRYDaemon.py b/lbrynet/lbrynet_daemon/LBRYDaemon.py index caa1a6873..f16f5562a 100644 --- a/lbrynet/lbrynet_daemon/LBRYDaemon.py +++ b/lbrynet/lbrynet_daemon/LBRYDaemon.py @@ -1181,9 +1181,12 @@ class LBRYDaemon(jsonrpc.JSONRPC): r['message'] = self.connection_problem[1] r['is_lagging'] = True elif self.startup_status[0] == LOADING_WALLET_CODE: - r['message'] = r['message'] % (str(self.session.wallet.blocks_behind_alert) + " blocks behind") - r['progress'] = self.session.wallet.catchup_progress - + if self.session.wallet.blocks_behind_alert != 0: + r['message'] = r['message'] % (str(self.session.wallet.blocks_behind_alert) + " blocks behind") + r['progress'] = self.session.wallet.catchup_progress + else: + r['message'] = "Catching up with the blockchain" + r['progress'] = 0 log.info("[" + str(datetime.now()) + "] daemon status: " + str(r)) return self._render_response(r, OK_CODE) diff --git a/packaging/ubuntu/lbry b/packaging/ubuntu/lbry index a4aed0ff8..37859de4d 100755 --- a/packaging/ubuntu/lbry +++ b/packaging/ubuntu/lbry @@ -26,7 +26,7 @@ ARG=${1:-} if [ -z "$ARG" ]; then URL="" else - URL="view?name=$(urlencode "$(echo "$ARG" | cut -c 8-)")" + URL="?watch=$(urlencode "$(echo "$ARG" | cut -c 8-)")" fi /usr/bin/xdg-open "http://localhost:5279/$URL"