Omertron / api-imdb

Java API for the JSON IMDB API
Other
61 stars 28 forks source link

ImdbApi.getSearch() returns results with empty data #8

Closed 4rg0n closed 7 years ago

4rg0n commented 7 years ago

When searching for a movie title getSearch() will return a map with a list of results. Some of the results seems to have empty data:

 ImdbMovieDetails[photos=[],certificate={},has=[],type=,title=,year=-1,runtime=ImdbRuntime[country=,runtime=-1,attribute=,statusMessage=<null>,error=false],tagline=,rating=0.0,imdbId=,genres=[],numVotes=-1.0,canRate=false,quote=ImdbQuote[quoteId=,lines=[],statusMessage=<null>,error=false],releaseDate={},goof=,trivium=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],writers=[],directors=[],plot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],bestPlot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],cast=[],userComment=ImdbUserComment[userScore=-1,summary=,userLocation=,text=,date=,status=,userScoreCount=-1,userName=,userRating=-1,statusMessage=<null>,error=false],trailer=ImdbTrailer[description=,durationSeconds=-1,contentType=,id=,title=,type=,relatedMovie=ImdbMovie[imdbId=,type=,title=,principles=[],image=ImdbImageDetails[width=-1,height=-1,url=,statusMessage=<null>,error=false],year=-1,releaseDate=,statusMessage=<null>,error=false],relatedName=ImdbPerson[actorId=,name=,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false],slates=[],encodings={},statusMessage=<null>,error=false],principals=[],seasons=[],creators=[],productionStatus=,yearEnd=,image=<null>,statusMessage=<null>,error=false],

How to reproduce

ImdbApi =imdbApi new ImdbApi();
Map<String, List<SearchObject>> searchResultMap = imdbApi.getSearch("Deadpool");
System.out.println(searchResultMap.get("Search results")); 

Output:

[ImdbMovieDetails[photos=[],certificate={},has=[],type=tv_series,title=Deadpool,year=2013,runtime=ImdbRuntime[country=,runtime=-1,attribute=,statusMessage=<null>,error=false],tagline=,rating=0.0,imdbId=tt2622240,genres=[],numVotes=-1.0,canRate=false,quote=ImdbQuote[quoteId=,lines=[],statusMessage=<null>,error=false],releaseDate={},goof=,trivium=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],writers=[],directors=[],plot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],bestPlot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],cast=[],userComment=ImdbUserComment[userScore=-1,summary=,userLocation=,text=,date=,status=,userScoreCount=-1,userName=,userRating=-1,statusMessage=<null>,error=false],trailer=ImdbTrailer[description=,durationSeconds=-1,contentType=,id=,title=,type=,relatedMovie=ImdbMovie[imdbId=,type=,title=,principles=[],image=ImdbImageDetails[width=-1,height=-1,url=,statusMessage=<null>,error=false],year=-1,releaseDate=,statusMessage=<null>,error=false],relatedName=ImdbPerson[actorId=,name=,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false],slates=[],encodings={},statusMessage=<null>,error=false],principals=[ImdbPerson[actorId=nm3847120,name=Damian Vargas,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false], ImdbPerson[actorId=nm3554139,name=Mandy Evans,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false], ImdbPerson[actorId=nm4478605,name=Andrea-Nichole Olivas,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false]],seasons=[],creators=[],productionStatus=,yearEnd=,image=ImdbImageDetails[width=663,height=960,url=https://images-na.ssl-images-amazon.com/images/M/MV5BOWNhMGFjZjAtMDQ0Yi00MjMxLTkwYjgtMjc4MzE3NDQ2NzExXkEyXkFqcGdeQXVyNTA0OTU0OTQ@._V1_.jpg,statusMessage=<null>,error=false],statusMessage=<null>,error=false],
 ImdbMovieDetails[photos=[],certificate={},has=[],type=,title=,year=-1,runtime=ImdbRuntime[country=,runtime=-1,attribute=,statusMessage=<null>,error=false],tagline=,rating=0.0,imdbId=,genres=[],numVotes=-1.0,canRate=false,quote=ImdbQuote[quoteId=,lines=[],statusMessage=<null>,error=false],releaseDate={},goof=,trivium=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],writers=[],directors=[],plot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],bestPlot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],cast=[],userComment=ImdbUserComment[userScore=-1,summary=,userLocation=,text=,date=,status=,userScoreCount=-1,userName=,userRating=-1,statusMessage=<null>,error=false],trailer=ImdbTrailer[description=,durationSeconds=-1,contentType=,id=,title=,type=,relatedMovie=ImdbMovie[imdbId=,type=,title=,principles=[],image=ImdbImageDetails[width=-1,height=-1,url=,statusMessage=<null>,error=false],year=-1,releaseDate=,statusMessage=<null>,error=false],relatedName=ImdbPerson[actorId=,name=,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false],slates=[],encodings={},statusMessage=<null>,error=false],principals=[],seasons=[],creators=[],productionStatus=,yearEnd=,image=<null>,statusMessage=<null>,error=false],
 ImdbMovieDetails[photos=[],certificate={},has=[],type=feature,title=Deadpool 3,year=0,runtime=ImdbRuntime[country=,runtime=-1,attribute=,statusMessage=<null>,error=false],tagline=,rating=0.0,imdbId=tt6263850,genres=[],numVotes=-1.0,canRate=false,quote=ImdbQuote[quoteId=,lines=[],statusMessage=<null>,error=false],releaseDate={},goof=,trivium=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],writers=[],directors=[],plot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],bestPlot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],cast=[],userComment=ImdbUserComment[userScore=-1,summary=,userLocation=,text=,date=,status=,userScoreCount=-1,userName=,userRating=-1,statusMessage=<null>,error=false],trailer=ImdbTrailer[description=,durationSeconds=-1,contentType=,id=,title=,type=,relatedMovie=ImdbMovie[imdbId=,type=,title=,principles=[],image=ImdbImageDetails[width=-1,height=-1,url=,statusMessage=<null>,error=false],year=-1,releaseDate=,statusMessage=<null>,error=false],relatedName=ImdbPerson[actorId=,name=,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false],slates=[],encodings={},statusMessage=<null>,error=false],principals=[ImdbPerson[actorId=nm0005351,name=Ryan Reynolds,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false]],seasons=[],creators=[],productionStatus=,yearEnd=,image=<null>,statusMessage=<null>,error=false],
 ImdbMovieDetails[photos=[],certificate={},has=[],type=video,title=Deadpool: A Typical Tuesday,year=2012,runtime=ImdbRuntime[country=,runtime=-1,attribute=,statusMessage=<null>,error=false],tagline=,rating=0.0,imdbId=tt2153366,genres=[],numVotes=-1.0,canRate=false,quote=ImdbQuote[quoteId=,lines=[],statusMessage=<null>,error=false],releaseDate={},goof=,trivium=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],writers=[],directors=[],plot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],bestPlot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],cast=[],userComment=ImdbUserComment[userScore=-1,summary=,userLocation=,text=,date=,status=,userScoreCount=-1,userName=,userRating=-1,statusMessage=<null>,error=false],trailer=ImdbTrailer[description=,durationSeconds=-1,contentType=,id=,title=,type=,relatedMovie=ImdbMovie[imdbId=,type=,title=,principles=[],image=ImdbImageDetails[width=-1,height=-1,url=,statusMessage=<null>,error=false],year=-1,releaseDate=,statusMessage=<null>,error=false],relatedName=ImdbPerson[actorId=,name=,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false],slates=[],encodings={},statusMessage=<null>,error=false],principals=[ImdbPerson[actorId=nm3310147,name=Trevor Garner,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false], ImdbPerson[actorId=nm1410191,name=Chris Burns,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false], ImdbPerson[actorId=nm3303042,name=James Farlow,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false]],seasons=[],creators=[],productionStatus=,yearEnd=,image=ImdbImageDetails[width=360,height=540,url=https://images-na.ssl-images-amazon.com/images/M/MV5BNzhjZjU2MzEtNmM1Yi00MmE5LWI2ODItOWNjOTZjMzFmOTU4XkEyXkFqcGdeQXVyNTA0OTU0OTQ@._V1_.jpg,statusMessage=<null>,error=false],statusMessage=<null>,error=false],
 ImdbMovieDetails[photos=[],certificate={},has=[],type=,title=,year=-1,runtime=ImdbRuntime[country=,runtime=-1,attribute=,statusMessage=<null>,error=false],tagline=,rating=0.0,imdbId=,genres=[],numVotes=-1.0,canRate=false,quote=ImdbQuote[quoteId=,lines=[],statusMessage=<null>,error=false],releaseDate={},goof=,trivium=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],writers=[],directors=[],plot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],bestPlot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],cast=[],userComment=ImdbUserComment[userScore=-1,summary=,userLocation=,text=,date=,status=,userScoreCount=-1,userName=,userRating=-1,statusMessage=<null>,error=false],trailer=ImdbTrailer[description=,durationSeconds=-1,contentType=,id=,title=,type=,relatedMovie=ImdbMovie[imdbId=,type=,title=,principles=[],image=ImdbImageDetails[width=-1,height=-1,url=,statusMessage=<null>,error=false],year=-1,releaseDate=,statusMessage=<null>,error=false],relatedName=ImdbPerson[actorId=,name=,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false],slates=[],encodings={},statusMessage=<null>,error=false],principals=[],seasons=[],creators=[],productionStatus=,yearEnd=,image=<null>,statusMessage=<null>,error=false],
 ImdbMovieDetails[photos=[],certificate={},has=[],type=video,title=Undead Pool,year=2007,runtime=ImdbRuntime[country=,runtime=-1,attribute=,statusMessage=<null>,error=false],tagline=,rating=0.0,imdbId=tt1134826,genres=[],numVotes=-1.0,canRate=false,quote=ImdbQuote[quoteId=,lines=[],statusMessage=<null>,error=false],releaseDate={},goof=,trivium=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],writers=[],directors=[],plot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],bestPlot=ImdbPlot[outline=,more=-1,summary=,totalSummaries=-1,text=,author=,statusMessage=<null>,error=false],cast=[],userComment=ImdbUserComment[userScore=-1,summary=,userLocation=,text=,date=,status=,userScoreCount=-1,userName=,userRating=-1,statusMessage=<null>,error=false],trailer=ImdbTrailer[description=,durationSeconds=-1,contentType=,id=,title=,type=,relatedMovie=ImdbMovie[imdbId=,type=,title=,principles=[],image=ImdbImageDetails[width=-1,height=-1,url=,statusMessage=<null>,error=false],year=-1,releaseDate=,statusMessage=<null>,error=false],relatedName=ImdbPerson[actorId=,name=,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false],slates=[],encodings={},statusMessage=<null>,error=false],principals=[ImdbPerson[actorId=nm2210064,name=Sasa Handa,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false], ImdbPerson[actorId=nm2825922,name=Yuria Hidaka,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false], ImdbPerson[actorId=nm1399385,name=Ayumu Tokitô,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false]],seasons=[],creators=[],productionStatus=,yearEnd=,image=ImdbImageDetails[width=378,height=537,url=https://images-na.ssl-images-amazon.com/images/M/MV5BZmNiNDRlZmQtNGU1Yy00NDM3LTgzMmEtMjBhNmExYjg2MDEyXkEyXkFqcGdeQXVyMjAwMzU2MDY@._V1_.jpg,statusMessage=<null>,error=false],statusMessage=<null>,error=false], ImdbPerson[actorId=nm6585102,name=Mehrdad Pooladi,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[ImdbKnownFor[title=ImdbMovie[imdbId=,type=,title=2014 FIFA World Cup,principles=[],image=ImdbImageDetails[width=-1,height=-1,url=,statusMessage=<null>,error=false],year=-1,releaseDate=,statusMessage=<null>,error=false],attribute=,statusMessage=<null>,error=false]],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false], ImdbPerson[actorId=nm4491777,name=Mohammad Poolad Khan,biography=,aka=[],has=[],birth=ImdbBirth[date={},place=,statusMessage=<null>,error=false],death=ImdbBirth[date={},place=,statusMessage=<null>,error=false],photos=[],knownFor=[ImdbKnownFor[title=ImdbMovie[imdbId=,type=,title=The Story of the Long Street,principles=[],image=ImdbImageDetails[width=-1,height=-1,url=,statusMessage=<null>,error=false],year=-1,releaseDate=,statusMessage=<null>,error=false],attribute=,statusMessage=<null>,error=false]],attr=,news=ImdbNews[channel=,total=-1,source={},markup=,label=,limit=-1,items=[],type=,start=-1,statusMessage=<null>,error=false],realName=<null>,image=<null>,statusMessage=<null>,error=false]]