Skip to content

PassThePopcorn ignore movie year discrepancies if we have imdb id#2241

Merged
cvium merged 2 commits intoFlexget:developfrom
jtpavlock:ptp-ignore-year
Oct 25, 2018
Merged

PassThePopcorn ignore movie year discrepancies if we have imdb id#2241
cvium merged 2 commits intoFlexget:developfrom
jtpavlock:ptp-ignore-year

Conversation

@jtpavlock
Copy link
Copy Markdown
Contributor

Motivation for changes:

Sometimes if there is a year discrepancy in a movie's release year between trakt (or other input sites that originally set movie_year), imdb, and passthepopcorn, it will reject the movie on passthepopcorn based on this discrepancy. This change will allow to ignore year discrepancies if we are dealing specifically with an imdb_id (no possibility of mismatches).

Detailed changes:

  • Ignores year matching check in PassThePopcorn plugin if using imdb_lookup and thus dealing with imdb ids i.e. there will be no mismatches so checking the year is not necessary.

Note that if whatever plugin produces the imdb_id produces the wrong or incorrect id, PassThePopcorn will download that movie with the imdb_id without failsafe procedure.

# skip movies with wrong year
# don't consider if we have imdb_id (account for year discrepancies if we know we have
# the right movie)
if (not entry.get('imdb_id') and entry.get('movie_year') and
Copy link
Copy Markdown
Member

@paranoidi paranoidi Oct 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More pythonic way to check if field is set:

'movie_year' in entry

@cvium cvium merged commit 4939976 into Flexget:develop Oct 25, 2018
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.

3 participants