Skip to content

Commit

Permalink
Release v1.0.1 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
132ikl authored Mar 3, 2020
2 parents 3b0c0c6 + 14f91f3 commit 27bce85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions opsi/frontend/templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ <h3>General</h3>
<div id="net-pi-settings">
<label for="ip-assign">IP Assignment Mode:</label>
<select id="ip-assign">
<option value="DHCP" {{"selected" if not persist.network.dhcp}}>DHCP</option>
<option value="Static" {{"selected" if persist.network.dhcp}}>Static</option>
<option value="DHCP" {{"selected" if persist.network.dhcp}}>DHCP</option>
<option value="Static" {{"selected" if not persist.network.dhcp}}>Static</option>
</select>
<br>
<div id="static-ext-div">
Expand Down
4 changes: 2 additions & 2 deletions opsi/modules/videoio/h264.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def register(self, func: "H264CameraServer"):
self.pipelines[func.name] = pipeline
if NT_AVAIL:
url = self.hook.url.split("/")[2].split(":")[0]
port = "" if self.port == 554 else self.port
port = "" if self.port == 554 else ":{self.port}"
NetworkDict(f"/GStreamer/{func.name}")["/streams"] = [
f"rtsp://{url}:{port}/{func.name}",
f"rtsp://{url}{port}/{func.name}",
]

def unregister(self, func: "H264CameraServer"):
Expand Down

0 comments on commit 27bce85

Please sign in to comment.