mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge pull request #3729 from SenorSmartyPants/SeriesImageDownload
Save series images under season, when browsing parent images for season
This commit is contained in:
commit
42bec6c11e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user