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);
|
||||
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue