jellyfin-web/dashboard-ui/bower_components/emby-apiclient/localassetmanager.js

130 lines
3.2 KiB
JavaScript
Raw Normal View History

2015-06-02 22:30:14 -07:00
(function () {
function getLocalMediaSource(serverId, itemId) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve(null);
});
2015-06-02 22:30:14 -07:00
}
2015-09-10 11:28:22 -07:00
function saveOfflineUser(user) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve();
});
2015-09-10 11:28:22 -07:00
}
2015-09-15 20:55:26 -07:00
function deleteOfflineUser(id) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve();
});
2015-09-15 20:55:26 -07:00
}
2015-09-10 11:28:22 -07:00
function getCameraPhotos() {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve([]);
});
2015-09-10 11:28:22 -07:00
}
2015-09-14 12:47:03 -07:00
function getOfflineActions(serverId) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve([]);
});
2015-09-14 12:47:03 -07:00
}
2015-09-15 20:55:26 -07:00
function deleteOfflineActions(actions) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve([]);
});
2015-09-15 20:55:26 -07:00
}
2015-09-14 12:47:03 -07:00
function getServerItemIds(serverId) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve([]);
});
2015-09-14 12:47:03 -07:00
}
function removeLocalItem(itemId, serverId) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve();
});
2015-09-14 12:47:03 -07:00
}
function getLocalItem(itemId, serverId) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve();
});
2015-09-14 12:47:03 -07:00
}
function addOrUpdateLocalItem(localItem) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve();
});
2015-09-14 12:47:03 -07:00
}
2015-09-14 21:31:12 -07:00
function createLocalItem(libraryItem, serverInfo, originalFileName) {
2015-09-14 14:24:54 -07:00
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve({});
});
2015-09-14 14:24:54 -07:00
}
function downloadFile(url, localPath) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve();
});
2015-09-14 14:24:54 -07:00
}
function downloadSubtitles(url, localItem, subtitleStreamh) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve("");
});
2015-09-14 14:24:54 -07:00
}
2015-09-14 18:16:31 -07:00
function hasImage(serverId, itemId, imageTag) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve(false);
});
2015-09-14 18:16:31 -07:00
}
function downloadImage(url, serverId, itemId, imageTag) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve(false);
});
2015-09-14 18:16:31 -07:00
}
2015-09-20 09:16:06 -07:00
function fileExists(path) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve(false);
});
2015-09-20 09:16:06 -07:00
}
2015-09-21 08:43:10 -07:00
function translateFilePath(path) {
2015-12-14 08:43:03 -07:00
return new Promise(function (resolve, reject) {
resolve(path);
});
2015-09-21 08:43:10 -07:00
}
2015-06-02 22:30:14 -07:00
window.LocalAssetManager = {
2015-09-10 11:28:22 -07:00
getLocalMediaSource: getLocalMediaSource,
saveOfflineUser: saveOfflineUser,
2015-09-15 20:55:26 -07:00
deleteOfflineUser: deleteOfflineUser,
2015-09-14 12:47:03 -07:00
getCameraPhotos: getCameraPhotos,
getOfflineActions: getOfflineActions,
2015-09-15 20:55:26 -07:00
deleteOfflineActions: deleteOfflineActions,
2015-09-14 12:47:03 -07:00
getServerItemIds: getServerItemIds,
removeLocalItem: removeLocalItem,
getLocalItem: getLocalItem,
2015-09-14 14:24:54 -07:00
addOrUpdateLocalItem: addOrUpdateLocalItem,
createLocalItem: createLocalItem,
downloadFile: downloadFile,
2015-09-14 18:16:31 -07:00
downloadSubtitles: downloadSubtitles,
hasImage: hasImage,
2015-09-20 09:16:06 -07:00
downloadImage: downloadImage,
2015-09-21 08:43:10 -07:00
fileExists: fileExists,
translateFilePath: translateFilePath
2015-06-02 22:30:14 -07:00
};
})();