2021-08-21, 08:26 PM
Landscape is just the aspect ratio though (sorry I posted size), I don't see why a 16x9 backdrop from tmdb is not landscape.
Martin
Martin
2021-08-21, 08:26 PM
Landscape is just the aspect ratio though (sorry I posted size), I don't see why a 16x9 backdrop from tmdb is not landscape.
Martin
2021-08-21, 08:36 PM
(2021-08-21, 08:26 PM)mvallevand Wrote: Landscape is just the aspect ratio though (sorry I posted size), I don't see why a 16x9 backdrop from tmdb is not landscape.NextPVR has always had two landscape aspect ratio artwork images. One was typically a larger backdrop image (.fanart.jpg) and one was typically a smaller landscape image (.landscape.jpg) for showing in lists of shows etc. Yes, in theory I could use the fanart image for both, and NextPVR will already fallback to using the .fanart.jpg in the place of a missing .landscape.jpg file. As pointed out, they sometimes contain different sorts of artwork (branding etc), but in general it'll try to make do with what it has available. It should already be giving you want you want from Kodi. ie, if you ask for the landscape image, and you only TMDB enabled, it'll give you the backdrop image. If you want it to always use the larger fanart/backdrop image whenever you ask for a landscape image, you could probably set <DownloadLandscape> to false in config.xml
2021-08-21, 08:41 PM
If you'd prefer it to download the TMDB backdrop image as the .landscape.jpg, I could probably add some option in config.xml.
2021-08-21, 08:53 PM
(This post was last modified: 2021-08-21, 08:58 PM by mvallevand.)
Since in NextPVR landscape is about filesize could you not just use w1280 from configuration, and you could keep the bigger backdrop as fanart with no config.xml setting
"backdrop_sizes": [ "w300", "w780", "w1280", "original" ], This discussion has made my realize I may need to change the Kodi and Emby options to retrieve fanart with the landscape fallback to make things less busy. Even the NextPVR recording.grid looks better without branding. Martin
2021-08-21, 09:02 PM
(2021-08-21, 07:21 PM)mvallevand Wrote: Perhaps @pkscout you have some thoughts on what the backdrop should be, you would have more experience with it. Looking at the images sub posted, I think it would be possible for TMDb to provide both landscape and fanart. TMDb has one grouping called "backdrops" which are for any 16x9 images. The Kodi default TMDb TV Show scraper (which I maintain) treats a 16x9 image with no language attribute in TMDb as fanart and 16x9 images with a language attribute in TMDb as landscape. If you want landscape images only in a certain language, it's possible to ask for images for a particular language from the API using: PHP Code: include_image_language=en That would get just backdrops tagged as English (i.e. landscape art in English). You can also combined languages so you get some kind of fallback: PHP Code: include_image_language=de,en And that would get German (if I remembered the two letter German code properly) and English. I can't remember right off hand, but I think the API returns the images grouped by language, so the first one in the list would be either the selected language or English if there were no images available in the first choice language. For the TMDb TV Show scraper, I actually grab all the 16x9 images in one call and then sort it out later by checking the language attribute in the returned JSON using: PHP Code: include_image_language=<lang_from_setting>,en,null
2021-08-21, 09:35 PM
Quote:Looking at the images sub posted, I think it would be possible for TMDb to provide both landscape and fanart. TMDb has one grouping called "backdrops" which are for any 16x9 images. The Kodi default TMDb TV Show scraper (which I maintain) treats a 16x9 image with no language attribute in TMDb as fanart and 16x9 images with a language attribute in TMDb as landscape.That's a good pointer - I hadn't noticed this significance of the language attribute (iso_639_1 tag).
2021-08-21, 09:42 PM
Yes it was very good. Here is an "en" for The Simpsons.
https://www.themoviedb.org/t/p/original/...hyjqta.jpg you could combine that with w1280 if you did want to have the smaller https://www.themoviedb.org/t/p/w1280//pH...hyjqta.jpg Martin
2021-08-21, 10:02 PM
Here is an updated version, which will use the language code to allow it to also download the landscape from TMDB. It also bumps up the size of the poster/landscape images. (test with TVMaze disabled so you can tell where it's coming from)
2021-08-21, 10:17 PM
Perfect and fast too. The sizes are small too.
8/21/2021 18:11 69,164 The Simpsons.landscape.jpg 8/21/2021 18:11 63,946 The Simpsons.jpg 8/21/2021 18:11 127,042 The Simpsons.fanart.jpg Martin |
|