-
Notifications
You must be signed in to change notification settings - Fork 0
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
App gets movie details from internet #8
Comments
Movie searchAdded support to movie search using IMDBPy (now Moviegoer) thru python endpoint, but there are two catches:
For the first issue I am thinking about to return only title and year, and in the selection to capture entire information. For the second issue I am thinking about to read the source code to understand what I am doing wrong searching for akas titles. |
Painly slow
Solved. Now only the titles are filled with this simple search. The drawback is only the name of the director, but that is not too much a problem than to fill the other zillion fields. The next step is to default fill the other fields =) |
Default values✔️ The next step and final one, change the title to Portuguese BR, I am not sure if is priority or desirable yet. To be decided. |
Director nameThe director name was obtained using the same async search, but instead of using a title was used the movie id. This way, after selecting one of the available titles the search is made again to get more details of the title selected using its id. The next step is to see how to get the ptbr title. |
PTBRI am stuck to get the Brazilian Portuguese title in the 'akas' property from a movie. Analyzing why the Cinemagoer is not working I stumble upon this issue saying that the last version can have some issues because there was some big update in the IMDB website. I tried to test the latest version and the test failed the same way when I tried to import the helpers module:
My next step is to study about locales in Python, because this seems to happen only on my machine. |
Import helpers solvedWhat I thought to be the problem was solved with an environment variable that doesn't exist in Windows about locales. With that the import worked as well, but the akas list is still the same. I really don't know what am I doing wrong or is this a bug in the new version for the IMDB site or a bug in the lib and has to be worked on before we can continue to use the full akas list. Anyway, I'm kind of tired of this approach. Perhaps a better strategy is to make a dumb search elsewhere (google, duckduckgo) and see what happens. |
Won't doThis issue has been dragged around the ptbr title with no easy result. In the meantime it was made a research about text recognition in the DVD image with promising results: google_vision_image_annotate.json
result.txt (partial)
With the results above a more promising direction to this project is to invest some time to use this API and let the original API and original efforts using imdb API to an older and incomplete version. |
Situation
We need to type every detail of the movie when registering a new DVD.
Objective
Orientation
We can use the IMDB and its REST API or Google. The advantage of Google is that is possible to type the brazilian title of the movie and still find it (not always available in IMDB). Other options include OMDB. We can take advantage of Python lib and export this in a endpoint inside the API (look at this script).
Proof
It is possible to type a word in the product title field and at least one movie should be floating; if selected at least the movie title and movie director fields should be filled automatically.
The text was updated successfully, but these errors were encountered: