Merge pull request #6214 from thornbill/download-item
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user