Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: lookup movie by imdbid if tmdbid does not exits for plex movie agent #711

Merged
merged 2 commits into from
Jan 21, 2021
Merged

feat: lookup movie by imdbid if tmdbid does not exits for plex movie agent #711

merged 2 commits into from
Jan 21, 2021

Conversation

mmozeiko
Copy link
Contributor

@mmozeiko mmozeiko commented Jan 21, 2021

Description

In case movie for Plex movie agent library does not have tmdbid - try looking it up by imdbid.

Screenshot (if UI related)

No UI changed

Todos

  • Sucessfully builds yarn build
  • Translation Keys yarn i18n:extract
  • Database migration created (if required)

Issues Fixed or Closed by this PR

afaik, no issue for this

imdbId: newMedia.imdbId,
});
newMedia.tmdbId = tmdbMovie.id;
}
Copy link
Owner

Choose a reason for hiding this comment

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

What about one more check following this to make sure we actually got the tmdb id? Just in case we couldn't find a match for some reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added code to throw error in case tmdb id is still unknown after these checks.

Copy link
Owner

@sct sct left a comment

Choose a reason for hiding this comment

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

Great. Thanks!

@sct sct merged commit e972288 into sct:develop Jan 21, 2021
@github-actions
Copy link

🎉 This PR is included in version 1.18.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants