Merge pull request #6214 from thornbill/download-item

This commit is contained in:
Bill Thornton
2024-10-17 02:28:31 -04:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@@ -404,8 +404,9 @@ function executeCommand(item, id, options) {
const downloadHref = apiClient.getItemDownloadUrl(itemId);
fileDownloader.download([{
url: downloadHref,
itemId: itemId,
serverId: serverId,
item,
itemId,
serverId,
title: item.Name,
filename: item.Path.replace(/^.*[\\/]/, '')
}]);
@@ -419,6 +420,7 @@ function executeCommand(item, id, options) {
const downloadHref = apiClient.getItemDownloadUrl(episode.Id);
return {
url: downloadHref,
item: episode,
itemId: episode.Id,
serverId: serverId,
title: episode.Name,

View File

@@ -2011,6 +2011,7 @@ export default function (view, params) {
const downloadHref = getApiClient().getItemDownloadUrl(currentItem.Id);
download([{
url: downloadHref,
item: currentItem,
itemId: currentItem.Id,
serverId: currentItem.ServerId,
title: currentItem.Name,