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

SearchContainer and Movie #14

Closed
akurdas opened this issue Jul 20, 2013 · 10 comments
Closed

SearchContainer and Movie #14

akurdas opened this issue Jul 20, 2013 · 10 comments

Comments

@akurdas
Copy link

akurdas commented Jul 20, 2013

Hi
I'm trying to search the movies by NAME using ;
SearchContainer results = client.SearchMovie("movie name");

however when I check the returned result, I couldn't seem to find the "movie overview".

On the other hand if I search it by "id", Movie class has the "movie overview" and a lot more.

Movie movie = client.GetMovie(ID);
string test = movie.overview;

The only solution I found is making 2 different requests one for getting the id and than using the GetMovie method to retrieve the "movie overview"

SearchContainer results = client.SearchMovie(TextBox.Text);

foreach (SearchMovie result in results.Results)
{
int ID = result.Id;
Movie movie = client.GetMovie(ID);
}

Am I missing something or is this the way it should be?

Thanks

@Naliath
Copy link
Collaborator

Naliath commented Jul 21, 2013

Hi,

This is the way the API for TMDb works, so yes this is the way it is intended to work.
You search for the movie by name and get the available options.
After picking the correct one you download the details.

@akurdas
Copy link
Author

akurdas commented Jul 22, 2013

Ok I got it. Thanks.
By the way when I search "Alien" or "Aliens", I get NULL result, but when I search the same movies by going to www.themoviedb.org/‎ I can easily find them.

@Naliath
Copy link
Collaborator

Naliath commented Jul 22, 2013

I'll take a look at that when I get home from work and let you know what the problem is

@akurdas
Copy link
Author

akurdas commented Jul 22, 2013

Ok man thanks a lot. For some reason same problem happens with the movie "Warrior" also.

@Naliath
Copy link
Collaborator

Naliath commented Jul 22, 2013

This is very strange, I don't seem to have this issue. I get 8 pages of results when looking for either Alien or Warrior and 2 pages when searching for Aliens. I tried with both my own fork and the base lib hosted here.

Did you by any chance use the nuget package of this library? If so you will have some issues. There were some issues in that version and the owner of this repo hasn't updated the nuget package as far as I know. In addition there are some issues with proper error logging in the communication library used by this repo.

I tried addressing some of these things in my fork. However for your problem it should suffice to download the root from here and compiling it for yourself. or you could try my nuget package @ https://www.nuget.org/packages/Naliath.TMDbLib/

Comment on my fork if you have any issues with it

@akurdas
Copy link
Author

akurdas commented Jul 22, 2013

Thanks for the info. Yes I'm using used the nuget package directly from visual studio. I'll download your version of the package now. I guess it'll solve the problem. Thanks again.

@Naliath Naliath closed this as completed Jul 26, 2013
@danielvelasquez
Copy link

Hello, I can't seem to use the Discover functionality, am I missing something? there is no Discover method in the client class...

@Naliath
Copy link
Collaborator

Naliath commented Apr 3, 2014

Please use the source from here, the nuget package is out of date and will not be updated until the movie db tvshow api comes out of beta

@danielvelasquez
Copy link

Thanks, now I got the extra methods:) Although I found a small error there, when trying to sort by release date the argument taken by the DiscoverMovies method is a DiscoverTvShowSortBy Enum instead of DiscoverMovieSortBy.

@Naliath
Copy link
Collaborator

Naliath commented Apr 6, 2014

Please refer to this issue so I can track it better: #41.
I'll try to take a look one of these days

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

3 participants