mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Merge pull request #401 from Electry/low-res-artwork-option
Add an option to reduce max artwork resolution
This commit is contained in:
commit
b5404f992e
3 changed files with 10 additions and 0 deletions
|
@ -263,6 +263,11 @@ class API(object):
|
||||||
if not settings('enableCoverArt.bool'):
|
if not settings('enableCoverArt.bool'):
|
||||||
query += "&EnableImageEnhancers=false"
|
query += "&EnableImageEnhancers=false"
|
||||||
|
|
||||||
|
art_maxheight = [360, 480, 600, 720, 1080, -1]
|
||||||
|
maxheight = art_maxheight[int(settings('maxArtResolution') or 5)]
|
||||||
|
if maxheight != -1:
|
||||||
|
query += "&MaxHeight=%d" % maxheight
|
||||||
|
|
||||||
all_artwork['Backdrop'] = self.get_backdrops(obj['Id'], obj['BackdropTags'] or [], query)
|
all_artwork['Backdrop'] = self.get_backdrops(obj['Id'], obj['BackdropTags'] or [], query)
|
||||||
|
|
||||||
for artwork in (obj['Tags'] or []):
|
for artwork in (obj['Tags'] or []):
|
||||||
|
|
|
@ -944,3 +944,7 @@ msgstr "Select the libraries to repair"
|
||||||
msgctxt "#33200"
|
msgctxt "#33200"
|
||||||
msgid "Select the libraries to remove"
|
msgid "Select the libraries to remove"
|
||||||
msgstr "Select the libraries to remove"
|
msgstr "Select the libraries to remove"
|
||||||
|
|
||||||
|
msgctxt "#33201"
|
||||||
|
msgid "Max artwork resolution"
|
||||||
|
msgstr "Max artwork resolution"
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
<setting label="33176" type="lsep" />
|
<setting label="33176" type="lsep" />
|
||||||
<setting label="30157" id="enableCoverArt" type="bool" default="true" />
|
<setting label="30157" id="enableCoverArt" type="bool" default="true" />
|
||||||
<setting label="33116" id="compressArt" type="bool" default="false" />
|
<setting label="33116" id="compressArt" type="bool" default="false" />
|
||||||
|
<setting label="33201" id="maxArtResolution" type="enum" values="360|480|600|720|1080|Unlimited [default]" default="5" />
|
||||||
<setting id="enableMusic" visible="false" default="false" />
|
<setting id="enableMusic" visible="false" default="false" />
|
||||||
</category>
|
</category>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue