Skip to content

Commit

Permalink
Updated: Show machine name.
Browse files Browse the repository at this point in the history
  • Loading branch information
basrieter committed Oct 15, 2023
1 parent 6e7c6ab commit 6d48744
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/lib/webdialogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def __get_html(self, title, setting_name, setting_value, max_waiting_time, time_
<form id="webdialogue" action="/" method="post">
<label for="value">{1}:</label><br />
<fieldset id="dialogueFields" style="border-width: 0px; padding: 0">
<input type="text" id="value" name="value" value="{2}" style="margin: 10px 0px; min-width: 450px;" />
<input type="text" id="value" name="value" placeholder="{2}" value="" style="margin: 10px 0px; min-width: 450px;" />
<br />
<progress value="{3}" max="{4}" id="pbar" style="margin: 10px 0px; width: 457px;" ></progress>
<br />
Expand Down Expand Up @@ -253,7 +253,9 @@ def force_stop(self):

d = xbmcgui.DialogProgress()
# TODO: Translate
d.create("Stop Web Dialog", "Open browser on http://localhost:3145.")
import platform
pc_name = platform.node()
d.create("Stop Web Dialog", f"Open browser on http://{pc_name.lower()}:3145.")

for i in range(0, time_out):
if d.iscanceled():
Expand Down

0 comments on commit 6d48744

Please sign in to comment.