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

spaces in search not working #22

Open
PraveenTalari opened this issue Nov 27, 2019 · 0 comments
Open

spaces in search not working #22

PraveenTalari opened this issue Nov 27, 2019 · 0 comments

Comments

@PraveenTalari
Copy link

Problem:
spaces in search not working.

Example:
When I search Godfather , it works. (but it shows Malayalam movie)
When I search "The Godfather" , it works
When I search The Godfather , it shows Invalid API key!

Suggestion:
Surround the entire search string with " " before making request.

    return movieApi.searchMovie("\""+movieName+"\"")

instead of
return movieApi.searchMovie(movieName)
at
https://github.com/kaushikgopal/movies-usf-android/blob/master/app/src/main/java/co/kaush/msusf/movies/MSMovieRepository.kt#L13

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

No branches or pull requests

1 participant