1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-06-17 18:49:55 +00:00

disable settings, adjust stream URL

This commit is contained in:
SuperBFG7 2017-07-31 10:41:33 +02:00
parent 70e3079fb5
commit b8b8b4d184
2 changed files with 6 additions and 6 deletions

View File

@ -246,23 +246,23 @@
<div class="row">
<div class="form-group col-md-9">
<label class="control-label" for="mpdhost">MPD Host/IP</label>
<input type="text" class="form-control" id="mpdhost" />
<input type="text" class="form-control" id="mpdhost" disabled />
</div>
<div class="form-group col-md-3">
<label class="control-label" for="mpdport">MPD Port</label>
<input type="text" class="form-control" id="mpdport" />
<input type="text" class="form-control" id="mpdport" disabled />
</div>
</div>
<div class="row">
<div class="form-group col-md-6">
<label class="control-label" for="mpd_pw">MPD Password</label>
<input type="password" class="form-control" id="mpd_pw" placeholder="Password"/>
<input type="password" class="form-control" id="mpd_pw" placeholder="Password" disabled />
</div>
<div class="form-group col-md-6">
<label class="control-label" for="mpd_pw_con">MPD Password (Confirmation)</label>
<input type="password" class="form-control" id="mpd_pw_con" placeholder="Password confirmation"
data-placement="right" data-toggle="popover" data-content="Password does not match!"
data-trigger="manual" />
data-trigger="manual" disabled />
</div>
<div class="form-group col-md-12">
<div id="mpd_password_set" class="hide alert alert-info">
@ -274,7 +274,7 @@
<div class="row">
<div class="form-group col-md-12">
<label class="control-label" for="mpdstream">MPD Stream URL</label>
<input type="text" class="form-control" id="mpdstream" />
<input type="text" class="form-control" id="mpdstream" disabled />
</div>
</div>
<div class="row">

View File

@ -755,7 +755,7 @@ function setLocalStream(mpdhost) {
var mpdstream = $.cookie("mpdstream");
if ( !mpdstream ) {
mpdstream = "http://" + window.location.hostname + ":8000/";
mpdstream = window.location.protocol + "//" + window.location.hostname + "/stream/";
$.cookie("mpdstream", mpdstream, { expires: 424242 });
}