From 7771ce716e4eab22f17a3354b9b0bd8e94e9291a Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 28 Jun 2022 13:43:36 -0400 Subject: [PATCH] Merge pull request #3729 from SenorSmartyPants/SeriesImageDownload Save series images under season, when browsing parent images for season (cherry picked from commit 42bec6c11ede49a479e93f37e1e38ab1677c5127) Signed-off-by: Bill Thornton --- src/components/imageDownloader/imageDownloader.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/imageDownloader/imageDownloader.js b/src/components/imageDownloader/imageDownloader.js index 5f3eb50ced..b88eea6688 100644 --- a/src/components/imageDownloader/imageDownloader.js +++ b/src/components/imageDownloader/imageDownloader.js @@ -33,10 +33,10 @@ import template from './imageDownloader.template.html'; let selectedProvider; let browsableParentId; - function getBaseRemoteOptions(page) { + function getBaseRemoteOptions(page, forceCurrentItemId = false) { const options = {}; - if (page.querySelector('#chkShowParentImages').checked && browsableParentId) { + if (!forceCurrentItemId && page.querySelector('#chkShowParentImages').checked && browsableParentId) { options.itemId = browsableParentId; } else { options.itemId = currentItemId; @@ -140,7 +140,7 @@ import template from './imageDownloader.template.html'; } function downloadRemoteImage(page, apiClient, url, type, provider) { - const options = getBaseRemoteOptions(page); + const options = getBaseRemoteOptions(page, true); options.Type = type; options.ImageUrl = url;