-
Notifications
You must be signed in to change notification settings - Fork 7
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
Update movie retrieval logic #15
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently the app retrieve 60 movies by popularity and 60 movies by vote average within last 6 months. The app do the retrieval every 24 hours with 4 hours flexible time. It upsert db record but do not delete any records.
http://api.themoviedb.org/3/discover/movie?api_key=xxx&sort_by=popularity.desc&page=1&primary_release_date.gte=2015-02-20
and
http://api.themoviedb.org/3/discover/movie?api_key=xxx&sort_by=vote_average.desc&page=1&primary_release_date.gte=2015-02-20
The alternative better solution might be calling
GET https://api.themoviedb.org/3/movie/popular?api_key=xxx
or
GET https://api.themoviedb.org/3/movie/top_rated?api_key=xxx
or
GET https://api.themoviedb.org/3/movie/now_playing?api_key=xxx
The text was updated successfully, but these errors were encountered: