Coder Social home page Coder Social logo

api-themoviedb's People

Contributors

aviemzur avatar criedel avatar dependabot[bot] avatar gitter-badger avatar jcminarro avatar mlaggner avatar mledoze avatar omertron avatar stigrv avatar zeeshanasghar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-themoviedb's Issues

updates endpoint - Since

What is the format of the number that you need to use in the since field for the updates endpoint?

Project documentation is not up-to-date

Hello Omertron,

firstly thanks a lot for this powerful api!

But I have some trouble with the documentation. Please can you update the docs?

I need a way to get the externalIds. I tried it with a .getTvSeasons().getSeason(ID, 1, "de-DE") but the externalId section is empty.

Casts

I just realized casts are not correctly read by the api. It searches for a "casts" json tag whereas the correct one is "credits"
"credits":{"cast":[{"id":65731,.......}], "crew":[{},{}....]}

Thanks for reading and hope you'll fix it ;)

Null Data when getFullDetails movie!

Hi! I have question when use your api!
I use method getTop250() to get imdbid of movies, but when i use method getFullDetails(String imdbID) all data of movie is null, so how do i do get detail information of movies? Please give advanced. Sorry because my English is verry bad!

Unknown property: 'credit_id' value: 'xxx'

For every call of movie = api.getMovieInfo(movies.getResults().get(0).getId(), globalConfig.getImportLanguage(), "casts,trailers");, I get plenty of warn messages in my logs:

WARN  2014-11-17 14:41:44.051 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100abf'
WARN  2014-11-17 14:41:44.062 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100ac3'
WARN  2014-11-17 14:41:44.067 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100ac7'
WARN  2014-11-17 14:41:44.072 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100acb'
WARN  2014-11-17 14:41:44.077 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100acf'
WARN  2014-11-17 14:41:44.082 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100ad3'
WARN  2014-11-17 14:41:44.087 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100ad7'
WARN  2014-11-17 14:41:44.092 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100adb'
WARN  2014-11-17 14:41:44.096 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100adf'
WARN  2014-11-17 14:41:44.101 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100ae3'
WARN  2014-11-17 14:41:44.105 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100ae7'
WARN  2014-11-17 14:41:44.110 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100aeb'
WARN  2014-11-17 14:41:44.115 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b01'
WARN  2014-11-17 14:41:44.119 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b65'
WARN  2014-11-17 14:41:44.130 [scan0] Unknown property: 'credit_id' value: '53908305c3a3680d750018c6'
WARN  2014-11-17 14:41:44.135 [scan0] Unknown property: 'credit_id' value: '53908320c3a3680d4e0019cc'
WARN  2014-11-17 14:41:44.140 [scan0] Unknown property: 'credit_id' value: '5390833dc3a3680d6e00185c'
WARN  2014-11-17 14:41:44.145 [scan0] Unknown property: 'credit_id' value: '53908379c3a36860ca0008a8'
WARN  2014-11-17 14:41:44.149 [scan0] Unknown property: 'credit_id' value: '539083adc3a3680d6600196b'
WARN  2014-11-17 14:41:44.154 [scan0] Unknown property: 'credit_id' value: '539083cec3a36860ca0008ab'
WARN  2014-11-17 14:41:44.159 [scan0] Unknown property: 'credit_id' value: '539083ebc3a3680d66001973'
WARN  2014-11-17 14:41:44.163 [scan0] Unknown property: 'credit_id' value: '53908401c3a3680d66001978'
WARN  2014-11-17 14:41:44.168 [scan0] Unknown property: 'credit_id' value: '5390841e0e0a262982002615'
WARN  2014-11-17 14:41:44.173 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100abb'
WARN  2014-11-17 14:41:44.177 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100af1'
WARN  2014-11-17 14:41:44.181 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100af7'
WARN  2014-11-17 14:41:44.186 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100afd'
WARN  2014-11-17 14:41:44.190 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b07'
WARN  2014-11-17 14:41:44.195 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b0d'
WARN  2014-11-17 14:41:44.203 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b13'
WARN  2014-11-17 14:41:44.230 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b19'
WARN  2014-11-17 14:41:44.235 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b1f'
WARN  2014-11-17 14:41:44.239 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b25'
WARN  2014-11-17 14:41:44.244 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b2b'
WARN  2014-11-17 14:41:44.248 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b31'
WARN  2014-11-17 14:41:44.253 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b37'
WARN  2014-11-17 14:41:44.258 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b3d'
WARN  2014-11-17 14:41:44.262 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b43'
WARN  2014-11-17 14:41:44.267 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b49'
WARN  2014-11-17 14:41:44.272 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b4f'
WARN  2014-11-17 14:41:44.277 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b55'
WARN  2014-11-17 14:41:44.281 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b5b'
WARN  2014-11-17 14:41:44.285 [scan0] Unknown property: 'credit_id' value: '52fe4677c3a36847f8100b61'
WARN  2014-11-17 14:41:44.291 [scan0] Unknown property: 'type' value: 'Teaser'
WARN  2014-11-17 14:41:44.295 [scan0] Unknown property: 'type' value: 'Trailer'

I've updated from 3.8 to 3.9 using this piece of code

API question

I know there is documentation, but I don't understand how I can use it. How can I get the data about a movie, how can I store it and how can I display it for example in the console. A piece of basic code would help me. In which a movie is created, the data for it is obtained. And how can I get more movies. (list). And how to search for a movie by name.
I have an api key.

Failed scanning person (ID '16854') data with scanner tmdb

Following error occures for persons, i.e. for ID 16854

java.lang.NullPointerException
at com.omertron.themoviedbapi.methods.TmdbPeople.getPersonInfo(TmdbPeople.java:83)
at com.omertron.themoviedbapi.TheMovieDbApi.getPersonInfo(TheMovieDbApi.java:1157)

Dependency warning

Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.5.1 is ignored for debug as it may be conflicting with the internal version provided by Android.

Empty Genre

I noticed that the GetGenres() method of the MovieInfo class always returns null. Did they change anything in their JSON encoding?

How can i paging over the result and how can i set the oder and oder direction

Hello,

how can i paging over the result (Movie-Lists) with "hits per page" and "page"

Page 1 => Movei 1..9
Page 2 => Movei 10..19
...

how can i set the oder and oder direction

=> order by rating -> ascending
=> order by release time-> descending
=> order by title-> ascending
...

How can i set HitsReleaseMax ReleaseMin, Voting min Voting max ...

Thank you and best greatings

Handle errors when not internet connection is available

Right now no internet connection leads to a "mapping exception", cause nothing was read (or at least just a system message).
The response status in such cases is 0; so a response status of 0 should be handled as connection error and an appropiate API exception with exception type CONNECTION_ERROR should be thrown.

NullPointerException when i retrieve trailers for MovieDb id : 1983

I'm using tag "3.5" version of the api.

When i try to call getTrailers() on MovieDb class for the specific movieDb identifier 1983, i get a NullPointerException.
Indeed, trailers is null, so the call "trailer.getAll()" fail as well.

Do you think the api should do a null check on trailers attribute before trying to call getAll() method, or is it the dababase who doesn't return the right data ?

Stacktrace :
java.lang.NullPointerException
at com.omertron.themoviedbapi.model.MovieDb.getTrailers(MovieDb.java:337)

The following code snippet fix the problem, but i'm not sure if it is the right way to go :

public List getTrailers() {
List trailerList = new ArrayList();
if(trailers != null)
{
trailerList = trailers.getAll();
}

    return trailerList;
}

API is not getting all info about a movie (null)

Hello!
despite there are the information I'm looking for on themobiedb.org, that API is getting null values. This is the movie page http://www.themoviedb.org/movie/668-on-her-majesty-s-secret-service?language=it and that's the JSON downloaded:
MovieDb[backdropPath=/l2axRuw41k2qZMe9YktDG1jKE3s.jpg,id=668,originalTitle=On Her Majesty's Secret Service,popularity=3.3239927,posterPath=/dga3zRbnXiqMNPvUnQNIdHsjtFf.jpg,releaseDate=1969-12-18,title=007 - Al servizio segreto di Sua Maestà,adult=false,belongsToCollection=<null>,budget=0,genres=<null>,homepage=<null>,imdbID=<null>,overview=<null>,productionCompanies=<null>,productionCountries=<null>,revenue=0,runtime=0,spokenLanguages=<null>,tagline=<null>,userRating=0.0,voteAverage=6.2,voteCount=87,status=<null>,alternativeTitles=<null>,casts=<null>,images=<null>,keywords=<null>,releases=<null>,trailers=<null>,translations=<null>,similarMovies=<null>,reviews=<null>,lists=<null>]

I tried both maven and github sources. Am I noob? (I am :P)

EDIT: I got that string by means of System.out.println(MovieDb movie)

api_key problem i guess

i got this error:

02-04 14:24:01.984 22993-22993/com.example.erik_.tvmanager E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.erik_.tvmanager, PID: 22993 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.erik_.tvmanager/com.example.erik_.tvmanager.MainActivity}: info.movito.themoviedbapi.tools.MovieDbException: Failed to read configuration at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5417) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: info.movito.themoviedbapi.tools.MovieDbException: Failed to read configuration at info.movito.themoviedbapi.TmdbApi.<init>(TmdbApi.java:48) at info.movito.themoviedbapi.TmdbApi.<init>(TmdbApi.java:35) at com.example.erik_.tvmanager.MainActivity.onCreate(MainActivity.java:42) at android.app.Activity.performCreate(Activity.java:6237) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)  at android.app.ActivityThread.-wrap11(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5417)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)  Caused by: android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1273) at java.net.InetAddress.lookupHostByName(InetAddress.java:431) at java.net.InetAddress.getAllByNameImpl(InetAddress.java:252) at java.net.InetAddress.getAllByName(InetAddress.java:215) at com.android.okhttp.internal.Network$1.resolveInetAddresses(Network.java:29) at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:188) at com.android.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:157) at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:100) at com.android.okhttp.internal.http.HttpEngine.createNextConnection(HttpEngine.java:357) at com.android.okhttp.internal.http.HttpEngine.nextConnection(HttpEngine.java:340) at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:330) at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:248) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:433) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:384) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getHeaders(HttpURLConnectionImpl.java:150) at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getHeaderFields(HttpURLConnectionImpl.java:210) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getHeaderFields(DelegatingHttpsURLConnection.java:178) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getHeaderFields(HttpsURLConnectionImpl.java) at info.movito.themoviedbapi.tools.WebBrowser.readHeader(WebBrowser.java:226) at info.movito.themoviedbapi.tools.WebBrowser.request(WebBrowser.java:143) at info.movito.themoviedbapi.tools.WebBrowser.request(WebBrowser.java:112) at info.movito.themoviedbapi.TmdbApi.requestWebPage(TmdbApi.java:64) at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:58) at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:45) at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:40) at info.movito.themoviedbapi.TmdbConfig.getConfig(TmdbConfig.java:18) at info.movito.themoviedbapi.TmdbApi.<init>(TmdbApi.java:44) at info.movito.themoviedbapi.TmdbApi.<init>(TmdbApi.java:35)  at com.example.erik_.tvmanager.MainActivity.onCreate(MainActivity.java:42)  at android.app.Activity.performCreate(Activity.java:6237)  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)  at android.app.ActivityThread.-wrap11(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:148)  at android.app.ActivityThread.main(ActivityThread.java:5417)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

I have this in my MainActivity.

TextView textView=(TextView) findViewById(R.id.prova);

        TmdbApi tmdbApi = new TmdbApi("Myapikey");

        TmdbMovies movies = tmdbApi.getMovies();
        MovieDb movie = movies.getMovie(5353, "en");

        TmdbConfiguration configuration = tmdbApi.getConfiguration();

        textView.setText(movie.getTitle());

The error says that api_key can't be empty, what does it means? Can you help me?

API-Key

Do I need my own API Key for this? Because I don't want to give them my whole contact data just for a API Key^^'

Enhanced collection info

The CollectionInfo object should be enhanced in order to include the parts of a collection; mostly the id and title is enough.

Jackson issue with company de-serialisation

there is a problem with Jackson de/serialization,
i was testing with compagny id = 2

When i use the method getCompagny sometimes i was getting error :
juil. 14, 2013 10:06:53 PM com.omertron.themoviedbapi.TheMovieDbApi getCompanyInfo
WARNING: Failed to get company information: Can not deserialize instance of java.lang.String out of START_OBJECT token
at [Source: java.io.StringReader@5f6b6496; line: 1, column: 590](through reference chain: com.omertron.themoviedbapi.model.Company["parent_company"])

java.lang.NullPointerException at com.omertron.themoviedbapi.tools.WebBrowser.request(WebBrowser.java:143)

Hello,

I have a batch program which scan the movie database using com.omertron.themoviedbapi in version 3.9 (built from tag 3.9).
Since approximatly one week, i have some random crashes ending on "java.lang.NullPointerException at com.omertron.themoviedbapi.tools.WebBrowser.request(WebBrowser.java:143)".

Full StackTrace is :

java.lang.NullPointerException: null
    at java.io.Reader.(Reader.java:61) ~[na:1.6.0_65]
    at java.io.InputStreamReader.(InputStreamReader.java:96) ~[na:1.6.0_65]
    at com.omertron.themoviedbapi.tools.WebBrowser.request(WebBrowser.java:143) ~[themoviedbapi-3.9.jar:67b4efe77c]
    at com.omertron.themoviedbapi.TheMovieDbApi.requestWebPage(TheMovieDbApi.java:193) ~[themoviedbapi-3.9.jar:67b4efe77c]
    at com.omertron.themoviedbapi.TheMovieDbApi.requestWebPage(TheMovieDbApi.java:181) ~[themoviedbapi-3.9.jar:67b4efe77c]
    at com.omertron.themoviedbapi.TheMovieDbApi.getMovieInfo(TheMovieDbApi.java:582) ~[themoviedbapi-3.9.jar:67b4efe77c] 

This same program is running fine since 9 months. So i think that a behavior has changed on TheMovieDb api side and the java api need an update.
The 3.7 version is also affected. I didn't try 3.8 but i think it is also affected.

After some quick diagnostic, looking at WebBrowser.java class, i think that a null check on "cnx" variable is needed at line 123, because i think that the null pointer exception comes from a null "cnx" value.

The behavior is hard to systematically reproduce since it doesn't appear to be related to a specific movie. It look likes a network problem....i don't know exactly.
To reproduce the bug, i do a loop on arround 500 movie ids and use getMovieInfo method. Each call is delayed by 500 miliseconds to avoid reaching the api limit rate request.

If you are not able to reproduce it, tell me, i will fork the repo and try to submit a pull-request.

Sorry for my english, i'm french :)

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/impl/client/HttpClientBuilder

I am using gradle dependency 'com.omertron:themoviedbapi:4.2' in my Android Studio Project. Here is my stacktrace.

Process: com.softkoki.myapplication, PID: 7180
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/impl/client/HttpClientBuilder;
at org.yamj.api.common.http.SimpleHttpClientBuilder.build(SimpleHttpClientBuilder.java:190)
at com.omertron.themoviedbapi.TheMovieDbApi.(TheMovieDbApi.java:141)
at com.softkoki.myapplication.MainActivity$FetchMovieTask.doInBackground(MainActivity.java:34)
at com.softkoki.myapplication.MainActivity$FetchMovieTask.doInBackground(MainActivity.java:28)
at android.os.AsyncTask$2.call(AsyncTask.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
            at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.apache.http.impl.client.HttpClientBuilder" on path: DexPathList[[zip file "/data/app/com.softkoki.myapplication-1/base.apk"],nativeLibraryDirectories=[/data/app/com.softkoki.myapplication-1/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
            at org.yamj.api.common.http.SimpleHttpClientBuilder.build(SimpleHttpClientBuilder.java:190)
            at com.omertron.themoviedbapi.TheMovieDbApi.(TheMovieDbApi.java:141)
            at com.softkoki.myapplication.MainActivity$FetchMovieTask.doInBackground(MainActivity.java:34)
            at com.softkoki.myapplication.MainActivity$FetchMovieTask.doInBackground(MainActivity.java:28)
            at android.os.AsyncTask$2.call(AsyncTask.java:295)
            at java.util.concurrent.FutureTask.run(FutureTask.java:237)
            at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
            at java.lang.Thread.run(Thread.java:818)
Suppressed: java.lang.ClassNotFoundException: org.apache.http.impl.client.HttpClientBuilder
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 11 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

How do i get the ShowId from TvEpisodeInfo?

I am trying to use the ShowId property from the TvEpisodeInfo class but it is null each time I try to use it. Here is the toString() of the class that i have just created. ShowId bolded.

TVEpisodeInfo[credits=MediaCreditList[cast=[],crew=[],guestStars=[],id=0],crew=[],externalIDs=ExternalID[freebaseId=null,freebaseMid=null,id=0,imdbId=null,tvdbId=null,tvrageId=null],guestStars=[],images=[],methods=[],productionCode=null,videos=[],airDate=2018-02-02,episodeNumber=10,name=The Killers,overview=As a cornered Kovacs braces for a final showdown in the sky, a new hero emerges and more buried secrets come to light.,seasonNumber=1,showId=null,stillPath=/6rs8oCBfY7ohnhPjOEYT3dnMrUf.jpg,backdropPath=null,id=1402150,mediaType=EPISODE,popularity=0.0,posterPath=null,voteAverage=8.0,voteCount=4]

Here is the code I am using to get the result
info = api!!.getEpisodeInfo(TVid!!,seasonNum!!,epNum!!,"en")

I have tried this will multiple different shows and all are the same.

getGenres is always null

If i try to get Genres List for a movie, i always receive null object.

TmdbResultsList<MovieDb> moviesList = api.getPopularMovieList(null, 0);
List<MovieDb> cur_list = moviesList.getResults();
MovieDb movie =  cur_List.get(position);
List<Genre> genres = movie.getGenres();

All other fields are populated, but the getGenres method return always null.

No module-info

There is no module-info so packaging an application that uses this dependency in a java 9+ modular project with jlink will not work.

API Noob with a question

Sorry if this is a dumb question but I'm new to using Android Studio... How exactly do we use this wrapper and include it in my android studio project? I tried bringing in the files to my project, and but when I tried to run code from http://docs.themoviedb.apiary.io/#reference/movies/movieid/get, I just got a bunch of errors and non-existant imports. How do we use your wrapper in Android Studio project?

parameter validation prevents ability to access TV series episodes in season 0.. the "specials"

  1. where seasonNumber is passed in with value: 0
  2. where validation causes this value to be silently ignored
    • which causes the URL that makes the API request to be incorrectly formed.. and the service returns a 404

off-hand, a possible workaround could be:

  public void add(final Param key, final Integer value) {
    int minValue = (key == Param.SEASON_NUMBER) ? 0 : 1;

    if (value != null && value >= minValue) {
      parameters.put(key, String.valueOf(value));
    }
  }

List<Artwork> getImages() throws NullPointerException

I try to get MovieInfo:
theMovieDbApi.getMovieInfo(suggestion.getId(), "ru");
movieInfo.getOriginalTitle(), movieInfo.getGenres() and etc. returns correct results
movieInfo.getImages() throws NullPointerException

getMovieInfoImdb("tt0303387",null) returns Movie object with ID of 0

I've recently pulled in your API to replace my own API and I'm noticing a few cases where some IMDBID lookups are returning a Movie Object with TID of 0. If you then try to call things like, getMovieTrailers, you end up with a NullPointerException.

I've started to work around this by checking for movie.getId()==0, but I think the API should fail, if it can't actually find a movie by IMDBID.

Search for collections does not work (anylonger)

Hi,
it just came to our attention, that the search for a movie collection is not working (anylonger?)
url generated is
http://api.themoviedb.org/3/search/collections?api_key= but it only works with
http://api.themoviedb.org/3/search/collection?api_key=

my first guess is, that the subfunction here is not working anylonger?!
https://github.com/Omertron/api-themoviedb/blob/master/src/main/java/com/omertron/themoviedbapi/TheMovieDbApi.java#L1595
The API also states, that this should be just "collection"

Thanks for your great APIs - keep on the good work!

brgds
Myron
TMM

Caching of Media

Hey there,
it would be really really nice if there was an built in solution for caching results, especially the media files behind the results (for example images!). They are quite large and always have to be re-loaded if a new API call is done (as far as I can see that).

Maybe this would be a nice feature!

thanks in advance. ben

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.