mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
86 lines
2.4 KiB
JavaScript
86 lines
2.4 KiB
JavaScript
(function () {
|
|
|
|
function getLocalMediaSource(serverId, itemId) {
|
|
return null;
|
|
}
|
|
|
|
function saveOfflineUser(user) {
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolve();
|
|
return deferred.promise();
|
|
}
|
|
|
|
function getCameraPhotos() {
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, [[]]);
|
|
return deferred.promise();
|
|
}
|
|
|
|
function getOfflineActions(serverId) {
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, [[]]);
|
|
return deferred.promise();
|
|
}
|
|
|
|
function getServerItemIds(serverId) {
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, [[]]);
|
|
return deferred.promise();
|
|
}
|
|
|
|
function removeLocalItem(itemId, serverId) {
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, []);
|
|
return deferred.promise();
|
|
}
|
|
|
|
function getLocalItem(itemId, serverId) {
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, []);
|
|
return deferred.promise();
|
|
}
|
|
|
|
function addOrUpdateLocalItem(localItem) {
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, []);
|
|
return deferred.promise();
|
|
}
|
|
|
|
function createLocalItem(libraryItem, serverId, originalFileName) {
|
|
|
|
var item = {};
|
|
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, [item]);
|
|
return deferred.promise();
|
|
}
|
|
|
|
function downloadFile(url, localPath) {
|
|
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, []);
|
|
return deferred.promise();
|
|
}
|
|
|
|
function downloadSubtitles(url, localItem, subtitleStreamh) {
|
|
|
|
var deferred = DeferredBuilder.Deferred();
|
|
deferred.resolveWith(null, [""]);
|
|
return deferred.promise();
|
|
}
|
|
|
|
window.LocalAssetManager = {
|
|
getLocalMediaSource: getLocalMediaSource,
|
|
saveOfflineUser: saveOfflineUser,
|
|
getCameraPhotos: getCameraPhotos,
|
|
getOfflineActions: getOfflineActions,
|
|
getServerItemIds: getServerItemIds,
|
|
removeLocalItem: removeLocalItem,
|
|
getLocalItem: getLocalItem,
|
|
addOrUpdateLocalItem: addOrUpdateLocalItem,
|
|
createLocalItem: createLocalItem,
|
|
downloadFile: downloadFile,
|
|
downloadSubtitles: downloadSubtitles
|
|
};
|
|
|
|
})(); |