mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
normalize tv recording objects
This commit is contained in:
parent
740e8a62a8
commit
82382681fc
9 changed files with 40 additions and 25 deletions
|
@ -192,7 +192,7 @@
|
|||
if (connectionMode == MediaBrowser.ConnectionMode.Local && currentServerInfo.RemoteAddress) {
|
||||
newConnectionMode = MediaBrowser.ConnectionMode.Remote;
|
||||
}
|
||||
else if (connectionMode == MediaBrowser.ConnectionMode.Remote && currentServerInfo.LocalAddress) {
|
||||
else if (connectionMode != MediaBrowser.ConnectionMode.Local && currentServerInfo.LocalAddress) {
|
||||
newConnectionMode = MediaBrowser.ConnectionMode.Local;
|
||||
}
|
||||
else {
|
||||
|
@ -204,6 +204,7 @@
|
|||
|
||||
function tryReconnectInternal(deferred, connectionMode, currentRetryCount) {
|
||||
|
||||
connectionMode = switchConnectionMode(connectionMode);
|
||||
var url = MediaBrowser.ServerInfo.getServerAddress(self.serverInfo(), connectionMode);
|
||||
|
||||
logger.log("Attempting reconnection to " + url);
|
||||
|
|
|
@ -4,6 +4,10 @@
|
|||
|
||||
fileExists: function (path) {
|
||||
return NativeFileSystem.fileExists(path);
|
||||
},
|
||||
|
||||
translateFilePath: function (path) {
|
||||
return NativeFileSystem.translateFilePath(path);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
}
|
||||
|
||||
function beginPurchase(id) {
|
||||
return NativeIapManager.beginPurchase(id);
|
||||
return MainActivity.beginPurchase(id);
|
||||
}
|
||||
|
||||
window.IapManager = {
|
||||
|
|
|
@ -4,8 +4,11 @@
|
|||
|
||||
fileExists: function (path) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
translateFilePath: function (path) {
|
||||
return path;
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
5
dashboard-ui/thirdparty/filesystem.js
vendored
5
dashboard-ui/thirdparty/filesystem.js
vendored
|
@ -4,8 +4,11 @@
|
|||
|
||||
fileExists: function (path) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
translateFilePath: function (path) {
|
||||
return path;
|
||||
}
|
||||
};
|
||||
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue