mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
render movies as folders with dlna
This commit is contained in:
parent
68ad0f6226
commit
ab4fd843d3
@ -20,6 +20,9 @@
|
|||||||
<button type="submit" data-icon="check">
|
<button type="submit" data-icon="check">
|
||||||
${ButtonSignIn}
|
${ButtonSignIn}
|
||||||
</button>
|
</button>
|
||||||
|
<p>
|
||||||
|
<a href="http://mediabrowser.tv/community/index.php?app=core&module=global§ion=lostpass" target="_blank">${ButtonForgotPassword}</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
<br /><br /><br />
|
<br /><br /><br />
|
||||||
<h2 style="text-align: left;">${HeaderNewUsers}</h2>
|
<h2 style="text-align: left;">${HeaderNewUsers}</h2>
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
}).done(function (result) {
|
}).done(function (result) {
|
||||||
|
|
||||||
|
Dashboard.serverAddress(server.Url);
|
||||||
Dashboard.setCurrentUser(result.LocalUserId, result.AccessToken);
|
Dashboard.setCurrentUser(result.LocalUserId, result.AccessToken);
|
||||||
|
|
||||||
window.location = 'index.html';
|
window.location = 'index.html';
|
||||||
|
@ -100,6 +100,9 @@ var Dashboard = {
|
|||||||
serverAddress: function (val) {
|
serverAddress: function (val) {
|
||||||
|
|
||||||
if (val != null) {
|
if (val != null) {
|
||||||
|
|
||||||
|
console.log('Setting server address to: ' + val);
|
||||||
|
|
||||||
store.setItem('serverAddress', val);
|
store.setItem('serverAddress', val);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -776,15 +779,7 @@ var Dashboard = {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var location = window.location;
|
ApiClient.openWebSocket();
|
||||||
|
|
||||||
var webSocketUrl = "ws://" + location.hostname;
|
|
||||||
|
|
||||||
if (location.port) {
|
|
||||||
webSocketUrl += ':' + location.port;
|
|
||||||
}
|
|
||||||
|
|
||||||
ApiClient.openWebSocket(webSocketUrl);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onWebSocketOpened: function () {
|
onWebSocketOpened: function () {
|
||||||
|
@ -67,6 +67,12 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||||||
throw new Error("Must supply a serverAddress");
|
throw new Error("Must supply a serverAddress");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('ApiClient serverAddress: ' + serverAddress);
|
||||||
|
console.log('ApiClient clientName: ' + clientName);
|
||||||
|
console.log('ApiClient applicationVersion: ' + applicationVersion);
|
||||||
|
console.log('ApiClient deviceName: ' + deviceName);
|
||||||
|
console.log('ApiClient deviceId: ' + deviceId);
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
var currentUserId;
|
var currentUserId;
|
||||||
var accessToken;
|
var accessToken;
|
||||||
@ -181,9 +187,11 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||||||
return url;
|
return url;
|
||||||
};
|
};
|
||||||
|
|
||||||
self.openWebSocket = function (webSocketAddress) {
|
self.openWebSocket = function () {
|
||||||
|
|
||||||
var url = webSocketAddress + self.apiPrefix();
|
var url = serverAddress + self.apiPrefix();
|
||||||
|
|
||||||
|
url = url.replace('http', 'ws');
|
||||||
|
|
||||||
webSocket = new WebSocket(url);
|
webSocket = new WebSocket(url);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user