mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #3729 from SenorSmartyPants/SeriesImageDownload
Save series images under season, when browsing parent images for season
(cherry picked from commit 42bec6c11e
)
Signed-off-by: Bill Thornton <billt2006@gmail.com>
This commit is contained in:
parent
b8ae732c98
commit
7771ce716e
1 changed files with 3 additions and 3 deletions
|
@ -33,10 +33,10 @@ import template from './imageDownloader.template.html';
|
||||||
let selectedProvider;
|
let selectedProvider;
|
||||||
let browsableParentId;
|
let browsableParentId;
|
||||||
|
|
||||||
function getBaseRemoteOptions(page) {
|
function getBaseRemoteOptions(page, forceCurrentItemId = false) {
|
||||||
const options = {};
|
const options = {};
|
||||||
|
|
||||||
if (page.querySelector('#chkShowParentImages').checked && browsableParentId) {
|
if (!forceCurrentItemId && page.querySelector('#chkShowParentImages').checked && browsableParentId) {
|
||||||
options.itemId = browsableParentId;
|
options.itemId = browsableParentId;
|
||||||
} else {
|
} else {
|
||||||
options.itemId = currentItemId;
|
options.itemId = currentItemId;
|
||||||
|
@ -140,7 +140,7 @@ import template from './imageDownloader.template.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
function downloadRemoteImage(page, apiClient, url, type, provider) {
|
function downloadRemoteImage(page, apiClient, url, type, provider) {
|
||||||
const options = getBaseRemoteOptions(page);
|
const options = getBaseRemoteOptions(page, true);
|
||||||
|
|
||||||
options.Type = type;
|
options.Type = type;
|
||||||
options.ImageUrl = url;
|
options.ImageUrl = url;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue