mirror of
https://github.com/SuperBFG7/ympd
synced 2025-11-15 12:47:12 +00:00
use current location for the stream URL
This commit is contained in:
@@ -755,12 +755,7 @@ function setLocalStream(mpdhost) {
|
|||||||
var mpdstream = $.cookie("mpdstream");
|
var mpdstream = $.cookie("mpdstream");
|
||||||
|
|
||||||
if ( !mpdstream ) {
|
if ( !mpdstream ) {
|
||||||
mpdstream = "http://";
|
mpdstream = "http://" + window.location.hostname + ":8000/";
|
||||||
if ( mpdhost == "127.0.0.1" )
|
|
||||||
mpdstream += window.location.hostname;
|
|
||||||
else
|
|
||||||
mpdstream += mpdhost;
|
|
||||||
mpdstream += ":8000/";
|
|
||||||
|
|
||||||
$.cookie("mpdstream", mpdstream, { expires: 424242 });
|
$.cookie("mpdstream", mpdstream, { expires: 424242 });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user