mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add base item to download params
This commit is contained in:
parent
8b3a02c727
commit
0d2652ce58
2 changed files with 5 additions and 2 deletions
|
@ -404,8 +404,9 @@ function executeCommand(item, id, options) {
|
||||||
const downloadHref = apiClient.getItemDownloadUrl(itemId);
|
const downloadHref = apiClient.getItemDownloadUrl(itemId);
|
||||||
fileDownloader.download([{
|
fileDownloader.download([{
|
||||||
url: downloadHref,
|
url: downloadHref,
|
||||||
itemId: itemId,
|
item,
|
||||||
serverId: serverId,
|
itemId,
|
||||||
|
serverId,
|
||||||
title: item.Name,
|
title: item.Name,
|
||||||
filename: item.Path.replace(/^.*[\\/]/, '')
|
filename: item.Path.replace(/^.*[\\/]/, '')
|
||||||
}]);
|
}]);
|
||||||
|
@ -419,6 +420,7 @@ function executeCommand(item, id, options) {
|
||||||
const downloadHref = apiClient.getItemDownloadUrl(episode.Id);
|
const downloadHref = apiClient.getItemDownloadUrl(episode.Id);
|
||||||
return {
|
return {
|
||||||
url: downloadHref,
|
url: downloadHref,
|
||||||
|
item: episode,
|
||||||
itemId: episode.Id,
|
itemId: episode.Id,
|
||||||
serverId: serverId,
|
serverId: serverId,
|
||||||
title: episode.Name,
|
title: episode.Name,
|
||||||
|
|
|
@ -2011,6 +2011,7 @@ export default function (view, params) {
|
||||||
const downloadHref = getApiClient().getItemDownloadUrl(currentItem.Id);
|
const downloadHref = getApiClient().getItemDownloadUrl(currentItem.Id);
|
||||||
download([{
|
download([{
|
||||||
url: downloadHref,
|
url: downloadHref,
|
||||||
|
item: currentItem,
|
||||||
itemId: currentItem.Id,
|
itemId: currentItem.Id,
|
||||||
serverId: currentItem.ServerId,
|
serverId: currentItem.ServerId,
|
||||||
title: currentItem.Name,
|
title: currentItem.Name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue