NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 4 5 6 7 8 … 193 Next »
TMDb for TV series

 
  • 0 Vote(s) - 0 Average
TMDb for TV series
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,932
Threads: 956
Joined: May 2006
#11
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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#12
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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#13
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.
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,932
Threads: 956
Joined: May 2006
#14
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
pkscout
Offline

Senior Member

USA
Posts: 464
Threads: 50
Joined: May 2014
#15
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 
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#16
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).
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,932
Threads: 956
Joined: May 2006
#17
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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#18
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)


Attached Files
.zip   NShared.zip (Size: 329.98 KB / Downloads: 2)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,932
Threads: 956
Joined: May 2006
#19
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
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,707
Threads: 767
Joined: Nov 2003
#20
2021-08-21, 10:28 PM
Here is a slightly updated one, which fixes a minor bug.


Attached Files
.zip   NShared.zip (Size: 329.99 KB / Downloads: 4)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  Search on series/episode number nextmel 4 487 2025-02-14, 11:10 AM
Last Post: nextmel
  Scheduler - Recurring TV Show recording in series mark.jankowski.89 2 1,210 2020-10-26, 09:00 PM
Last Post: mark.jankowski.89
  Changes to Season/Series recording option Reddwarf 7 2,898 2018-09-13, 07:03 AM
Last Post: Reddwarf
  Archive a Series and/or Batch of Shows in recordings from root menu? jksmurf 25 14,203 2017-09-21, 12:14 PM
Last Post: BrettB
  Record button twice for series record UncT 4 2,524 2017-07-12, 03:52 AM
Last Post: UncT
  Import XMLTV valid series.episode data from Epgcollector in NZ into NPVR db MCEabused 6 5,521 2014-10-30, 09:41 AM
Last Post: kylebrophy
  Record just new (first run) episodes for a series cncb 6 2,722 2011-12-09, 01:40 AM
Last Post: mulletback
  EPG to show year of movies and series episodes smcone 9 3,333 2008-04-12, 11:18 PM
Last Post: jksmurf
  UK Freeview Series and episode information. ReddogOne 18 6,327 2008-02-18, 11:35 PM
Last Post: gEd
  auto play next file in series normanr 0 1,076 2005-03-20, 10:13 PM
Last Post: normanr

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode