1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-11-16 18:54:48 +00:00

use current location for the stream URL

This commit is contained in:
SuperBFG7 2017-07-30 13:27:15 +02:00
parent a212f1bcb7
commit 23a08c54af

View File

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