Skip to content

[change] tvdb_lookup - Always have the main poster as the first entry of tvdb_posters#2524

Merged
liiight merged 4 commits intoFlexget:developfrom
BrutuZ:tvdb-main-poster
Dec 10, 2019
Merged

[change] tvdb_lookup - Always have the main poster as the first entry of tvdb_posters#2524
liiight merged 4 commits intoFlexget:developfrom
BrutuZ:tvdb-main-poster

Conversation

@BrutuZ
Copy link
Copy Markdown
Contributor

@BrutuZ BrutuZ commented Dec 9, 2019

Motivation for changes:

TheTVDB returns posters in a random order and Flexget caps the list to 5 entries. I like to use the main poster (curated to be used by the site) on my notifications and given the aforementioned actions, it's not always on the list, and when it is there is no way to determine which entry t is.

Detailed changes:

  • [unrelated] Changed URL for the posters CDN to the new one post TheTVDB's v3 migration. There are currently 301 redirects in place at the old URL but they did recommend changing it wherever possible.
  • Request the main poster path from the /series/{id} endpoint and start the list with it
  • Append up to 5 posters to the list (not 4 just in case the main one is not defined)
  • Trim the list down to 5 entries

Addressed issues:

  • Fixes my OCD.

@liiight
Copy link
Copy Markdown
Member

liiight commented Dec 10, 2019 via email

@BrutuZ BrutuZ requested a review from liiight December 10, 2019 18:11
@liiight liiight merged commit 0e2f2b0 into Flexget:develop Dec 10, 2019
@liiight
Copy link
Copy Markdown
Member

liiight commented Dec 10, 2019

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants