1
0
Fork 0
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:
Bill Thornton 2024-10-17 01:41:13 -04:00
parent 8b3a02c727
commit 0d2652ce58
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,