Giter Club home page Giter Club logo

themoviedbapi's People

Contributors

archerzp avatar atanarro avatar bluexin avatar c-eg avatar chrismpalmer avatar dependabot[bot] avatar heze8 avatar holgerbrandl avatar ishailendra avatar jediburrell avatar jmartin82 avatar joaopfsilva avatar joeypriceless avatar kliqkliq avatar mahendranv avatar mckenziecallum avatar mej71 avatar natonk-brose avatar nullsumme avatar oncaphillis avatar owenlejeune avatar sai-g avatar serv-inc avatar shisheng-1 avatar surfaces avatar thomasfischersm avatar warwickhunter avatar xbeebx 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

themoviedbapi's Issues

Movie properties are null

When I search for a movie by ID some movie properties get lost for example the credits.
This is out function:
public MovieDb getMoviebyID(int ID){
MovieDb ergebnis = tmdb.getMovies().getMovie(ID,"");
return ergebnis;
}

Would be nice if you could help us :)
thanks!
Nina

TvShows Info

Why can't i get all the information about a tv series?

I can retrive only the name, first air date and the poster path. What's the problem?

Android

does themoviedbapi work on Android?

Getting NoClassDefFoundError on org/slf4j/LoggerFactory

I'm getting NoClassDefFoundError on org/slf4j/LoggerFactory.
Here the code :

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at info.movito.themoviedbapi.tools.WebBrowser.(WebBrowser.java:27)
at info.movito.themoviedbapi.TmdbApi.(TmdbApi.java:34)
at tvmdbtest.TVMDBTest.main(TVMDBTest.java:13)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 3 more

I also included all library requested by your imports like com.fasterxml, org.apache, com.google, org.yamj and org.slf4g.

Any suggestions?
Thanks in advance especially for your great work.

Android HTTP Client

Hi,
currently im using omertrons wrapper in my android app to get movie informations.
My problem is that i can't load images. I always get an exception. The problem is in his http client implementation in yamj. Android removed the httpclient in API 23. Do you know an alternative?
I think i'll have the same problem if i use your lib because you're using his lib too right?
Currently he has not time to update his code ;(

PS: I saw that you're german so we also can talk german ;)

Invalid ID

hi,
Sometimes people wish to remove an duplicate item like movie/actor/tv or a movie with wrong informations.

ex : http://www.themoviedb.org/talk/51af1afc760ee3673427e92e

With your api, i try to fetch an invalide ID :
movie = movieService.getMovie(199392, "fr",
MovieMethod.alternative_titles, MovieMethod.credits,
MovieMethod.keywords, MovieMethod.images,
MovieMethod.translations);

i get movie with empty or null values.

Can you throw an (Custom) Exception?
best regards.

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 t 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?

Add 'keywords' for discover

Hey,
could you add "keywords" for the discover feature? (or is there any workaround to do it with the current version?)

Many thanks in advance

getNowPlayingMovies method throws an error

I'm new to this api and I tried many different ways of getting the movies that are currently playing in theatres.

Here's 2 ways I tried:

TmdbApi tmdb = new TmdbApi(Meta.API_KEY);
MovieResultsPage result = tmdb.getMovies().getNowPlayingMovies(Meta.LANGUAGE_DEFAULT, 0);
TmdbApi tmdb = new TmdbApi(Meta.API_KEY);
List<MovieDb> result = tmdb.getMovies().getNowPlayingMovies(Meta.LANGUAGE_DEFAULT, 0).getResults();

On both occasions I get this response:

ResponseStatus{code=34, message=The resource you requested could not be found.}
    at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:78)
    at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:45)
    at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:40)
    at info.movito.themoviedbapi.TmdbMovies.getNowPlayingMovies(TmdbMovies.java:306)
    at Main.main(Main.java:44)

I checked and double-checked everything. I couldn't find any example in your repository. My API key is valid because I can perform other requests. Is this a fault on TMDB's end or a bug?

Thanks in advance.

Tests failed on mvn package.

Results :

Failed tests: limitPushWithoutAutoRety(info.movito.themoviedbapi.MiscApiTest): failed to throw response status because of api limit
testMovieKeywordsAppendedMethod(info.movito.themoviedbapi.MoviesApiTest): expected:<8> but was:<10>

Tests in error:
testMovieRating(info.movito.themoviedbapi.AccountApiTest): 3 :: Authentication failed: You do not have permissions to access the service.
testAccount(info.movito.themoviedbapi.AccountApiTest): 3 :: Authentication failed: You do not have permissions to access the service.
testFavorites(info.movito.themoviedbapi.AccountApiTest): 3 :: Authentication failed: You do not have permissions to access the service.
listUserLists(info.movito.themoviedbapi.AccountApiTest): 3 :: Authentication failed: You do not have permissions to access the service.
testEpisodeRating(info.movito.themoviedbapi.AccountApiTest): 3 :: Authentication failed: You do not have permissions to access the service.
testWatchList(info.movito.themoviedbapi.AccountApiTest): 3 :: Authentication failed: You do not have permissions to access the service.
testSeriesRating(info.movito.themoviedbapi.AccountApiTest): 3 :: Authentication failed: You do not have permissions to access the service.
listManagement(info.movito.themoviedbapi.ListsApiTest): 3 :: Authentication failed: You do not have permissions to access the service.
testMovieLists(info.movito.themoviedbapi.ListsApiTest): 3 :: Authentication failed: You do not have permissions to access the service.

Tests run: 70, Failures: 2, Errors: 9, Skipped: 1

I have the apikey environment variable set, but it looks like it's trying to call methods that the API doesn't allow for my key.

get tv series result without genreids

Hello holgerbrandl,

if I try to get the popular tv show list, there are no genre ids.

I tried it with the following code. Is there another way to retrieve the genres or is it an api mistake?

TmdbTV discover = new TmdbApi(TMDB_API_KEY).getTvSeries();

TvResultsPage result = discover.getPopular("en-EN", 1);

//If I stop in debugging here, the genre attribute is empty :(

return result.getResults();

The first item is "Doctor Who" with the ID 57243

If I get the list on themoviedb "Try-it-out" I get this:

 "genre_ids": [
    28,
    12,
    18,
    878
  ],

UPDATE

My issue, problem solved!

get Runtime

When I try to getRuntime in any language (not English) I get 0. When I swith language to English, it does well. Can this be fixed? Thanks in advance.

Error Login

When i use .getSessionLogin(username, password);

and i put wrong username and password, android studio return this error.

How can i get a error message? Why response status is empy?

FATAL EXCEPTION: AsyncTask #2
                                                                           Process: com.example.erik_.tvmanager, PID: 2199
                                                                           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: ResponseStatus{}
                                                                               at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:78)
                                                                               at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:45)
                                                                               at info.movito.themoviedbapi.AbstractTmdbApi.mapJsonResult(AbstractTmdbApi.java:40)
                                                                               at info.movito.themoviedbapi.TmdbAuthentication.getLoginToken(TmdbAuthentication.java:73)
                                                                               at info.movito.themoviedbapi.TmdbAuthentication.getSessionLogin(TmdbAuthentication.java:99)
                                                                               at com.example.erik_.tvmanager.LoginActivity$LoginTask.doInBackground(LoginActivity.java:103)
                                                                               at com.example.erik_.tvmanager.LoginActivity$LoginTask.doInBackground(LoginActivity.java:92)
                                                                               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) 

TmdbTV/TmdbPeople constructors

Hi,

I'm developping an Android app and I need to create a detailed view for a TV series or a movie. The following code to get a specific MovieDb object from its id works just fine:

TmdbApi api = new TmdbApi(API_KEY);
TmdbMovies tmdbm = new TmdbMovies(api);
MovieDb movie = tmdbm.getMovie(id, LANG, TmdbMovies.MovieMethod.credits);

I tried to do the same for a TVseries object:

TmdbApi api = new TmdbApi(API_KEY);
TmdbTV tmdbtv = new TmdbTV(api);
TVSeries tvSerie = tmdbtv.getSeries(id, LANG, TmdbTV.TvMethod.credits);

However, it tells me that "TmdbTV(TmdbApi) is not public in TmdbTV; cannot be accessed from outside package". The TmdbTV constructor is indeed not specified as "public" while the TmdbMovies one is "public". I looked for the TmdbPeople constructor too (I will need it later) and it's not "public".

Would it be then possible to make these 2 constructors public? If not, is there another way for me to get a specific TVseries object form its id?

Thank you very much!

Error when using getTopRatedNMovies method

I'm getting the error "34 :: The resource you requested could not be found" when using this method. Could you please confirm that the code "top-rated" is really like that or should be "top_rated". Thanks in advance

question on the response from getMovie

Hi, I'm kind of new to using APIs,
Right now I'm trying to get a trailer link:

TmdbMovies movies = new TmdbApi(key).getMovies();
MovieDb movie = movies.getMovie(78, "en", TmdbMovies.MovieMethod.videos);
List myList = movie.getVideos();

Is movie a JSON file? Or what kind of file is it, and how would I extract the key part of the youtube link?

Update:

It seems to be a list of Video objects - but I'm still not sure how to get the key out.
After doing

Class c = list.get(0).getClass();
for (Method method : c.getDeclaredMethods()) {
  Log.e("method:", c.getName() + "." + method.getName());
}

There seems to be a getKey function but I can't seem to call it on the Video object.

** Update 2: **

Turns out I needed to do

List<Video> list

Because otherwise getting the first object returns as Java.lang.object instead of the Video object.

Thank you!

Is there anyway to get total number of pages for the request?

The TMDB Api documentation when called shows you a json component called total_pages that lets you see how many pages (of length 20) for the request. I was wondering if there was a way in this api to grab the amount of pages each request gives.

Failed to read configuration

When i try to create an instance of the API i get this error. I'm calling it in an AsyncTask on android to avoid NetworkOnMainThread errors. I see in some of the other issues that you mention the pom.xml file, however i'm not sure what i'm meant to be looking for in it? Are the dependencies not imported with the API? Is that file meant to be somewhere in my filesystem?
Here is my gradle Setup:

`apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "uk.ac.tees.p4061644.tvcheck"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile group: 'info.movito', name: 'themoviedbapi', version: '1.6'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.firebase:firebase-auth:11.0.4'
compile 'com.google.firebase:firebase-database:11.0.4'
testCompile 'junit:junit:4.12'
}
repositories {
jcenter()
maven {
url "https://dl.bintray.com/holgerbrandl/movito-utils"
}
}
apply plugin: 'com.google.gms.google-services'`

Possible typo in method: getNowPlayingMovies

The current method throws the following error:

The resource you requested could not be found.

I think the line:

ApiUrl apiUrl = new ApiUrl(TMDB_METHOD_MOVIE, "now_playing");

Should be:

ApiUrl apiUrl = new ApiUrl(TMDB_METHOD_MOVIE, "now-playing");

Always the same exception - Please help me

Hi, i want to write my own Moviedatabase application for Ubuntu 16.04 with IntelliJ. So i've downloaded your Movie Api(as jar-File) l. I have already added the SLF4J-jar, but now i get this problem:

Exception in thread "main" info.movito.themoviedbapi.tools.MovieDbException: Failed to read configuration
at info.movito.themoviedbapi.TmdbApi.(TmdbApi.java:58)
at info.movito.themoviedbapi.TmdbApi.(TmdbApi.java:44)
at Main.main(Main.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper
at info.movito.themoviedbapi.AbstractTmdbApi.(AbstractTmdbApi.java:27)
at info.movito.themoviedbapi.TmdbApi.(TmdbApi.java:54)
I have already used Google and but i cannot resolve the issue. The Api-Key should be the right one, the examples on the themoviedb.org are working without problems. Here is my code where my program crashed:

TmdbMovies movie = new TmdbApi("hereismykey").getMovies();

Can you tell me where the problem is? I dont know where the method want to read the configuration.
Thx! :-)

NPE if any of the backdrop/profile/poster is not returned in json while getting movie info

info/movito/themoviedbapi/model/MovieImages.java

   if(types.contains(ArtworkType.POSTER) && this.posters != null) {
        this.updateArtworkType(this.posters, ArtworkType.POSTER);
        artwork.addAll(this.posters);
    }

    if(types.contains(ArtworkType.BACKDROP) && this.backdrops != null) {
        this.updateArtworkType(this.backdrops, ArtworkType.BACKDROP);
        artwork.addAll(this.backdrops);
    }

    if(types.contains(ArtworkType.PROFILE) && this.profiles != null) {
        this.updateArtworkType(this.profiles, ArtworkType.PROFILE);
        artwork.addAll(this.profiles);
    }

"person/id/combined_credit" ?

Accessing this information?

I tried to look and found .

Already have or to wait ?

" Written in Portuguese , translated by google rs "

Cast, Genres, ect null

Hi,

I'm making this : List cast = movieDb.getCast();
But it doesn't return anything.

It's strange because movieDb.getTitle(), overview, ect are working

Any help ?

Thanks :)

Failed to read configuration

Hello!
I get this error trying to test this lib:

W/System.err: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
W/System.err: SLF4J: Defaulting to no-operation (NOP) logger implementation
W/System.err: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
E/MessageQueue-JNI: Exception in MessageQueue callback: handleReceiveCallback
E/MessageQueue-JNI: info.movito.themoviedbapi.tools.MovieDbException: Failed to read configuration
at info.movito.themoviedbapi.TmdbApi.(TmdbApi.java:48)
at info.movito.themoviedbapi.TmdbApi.(TmdbApi.java:35)

Is there something im missing here?

cheers!

never mind. i saw another thread about this , sorry

Many fields are coming null

many fileds like cast,Images etc are coming null

I did
TmdbMovies movies = new TmdbApi(APIKEY).getMovies();
MovieDb movie = movies.getMovie(140607, "en");

getSimilarMovies() return null

I include MovieMethod.similar and use 157336(Interstellar) as example

movie = movies.getMovie(id, "en", TmdbMovies.MovieMethod.similar);

but it still return Null

Log.i("*** Value :: ", "Similar movies --------- " + movie.getSimilarMovies());
I/*** Value ::: Similar movies --------- null

Duplicate files copied in APK META-INF/LICENSE

Hi holgerbrandl,

I add a depencie for your wrapper, but I cannot compile the project. I get every time the same error.

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE

File1: C:\Users\Philipp.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-annotations\2.4.4\d3dad1a494f94579fca4b6a1142fb15fb68f0b2f\jackson-annotations-2.4.4.jar

File2: C:\Users\Philipp.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-databind\2.4.4\e2ff13c3de2f5a2ab2449a3dace2b0d1c37bd8ee\jackson-databind-2.4.4.jar

File3: C:\Users\Philipp.gradle\caches\modules-2\files-2.1\com.fasterxml.jackson.core\jackson-core\2.4.4\c5cd3347c0a86d0dcfbf3da593d8431d5a789d54\jackson-core-2.4.4.jar

My build.gradle has no other dependencies

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion '24.0.3'
defaultConfig {
applicationId "com.example.phil795.serieswatchlist"
minSdkVersion 17
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

repositories {
jcenter()
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.android.support:design:25.0.0'
compile group: 'info.movito', name: 'themoviedbapi', version:'1.4'
testCompile 'junit:junit:4.12'
}

After I add a exclude option for the LICENSE file, I get another exception:

info.movito.themoviedbapi.tools.MovieDbException: Failed to read configuration
11-01 16:18:51.855 11872-11872/com.example.philipp.serieswatchlist W/System.err: at >info.movito.themoviedbapi.TmdbApi.(TmdbApi.java:58)
11-01 16:18:51.855 11872-11872/com.example.philipp.serieswatchlist W/System.err: at >info.movito.themoviedbapi.TmdbApi.(TmdbApi.java:44)

The API Key I tested is the v3 and v4 Token.

Movies : problem mapping on keywords

hi,
i try to retrieve keywords from on movie(10191), but the keywords proprty is always empty

MovieDb movie = movieService.getMovie(10191, "fr",
            MovieMethod.alternative_titles, MovieMethod.credits,
            MovieMethod.keywords, MovieMethod.images,
            MovieMethod.translations, MovieMethod.trailers);

i think ResultPage like property for a Movie entite is not efficient/correct.

best regards

Maven building failed in 4 tests

While building the jar to add as library in a project some tests fail so no jar is built.
I am using netbeans.
Could you please give me some help? I am not so experienced with maven projects.
Thank you.

Series getImages returns null

Hi,

I want to get all Images for a tvShow. For that i tried using
tmdbApi.getTvSeries().getSeries(tmdbId, "").getImages();

But it returns nothing.
If I do it with movies, all works fine.
tmdbApi.getMovies().getImages(tmdbId, "");

Am I using it wrong or is it a bug?

Greetings

Ps.: Tried it with 2290 Stargate Atlantis and a few more.
Getting the poster and backdrop over tmdbApi.getTvSeries().getSeries(tmdbId, "").getPosterPath(); works fine.

My fault. Had forgotten to set SeasonMethod.images;

Failed to read configuration

I am developing for android with gradle. When I try to run this code

TmdbApi api = new TmdbApi("API_KEY");

I got _MovieDbException Failed to read configuration_. I checked my api key and it works fine. Any idea what might be wrong?

getVideos() return null

I can properly get the MovieDb object, every his method works, but getVideos().
I don't know if I can give some more info, I really can't understand the reason since getVideos() doesn't accept extra parameters.

Null values in popular movies list

TmdbMovies movies = new TmdbApi(Variables.apiKey).getMovies();
MovieResultsPage mov = movies.getPopularMovies("en", 1);
List movieList = mov.getResults();

//Those two below work and give me value:
System.out.println(movieList.get(0).getOriginalTitle());
System.out.println(movieList.get(0).getBackdropPath());

//Here is everything NULL:
System.out.println(movieList.get(0).getImdbID());
System.out.println(movieList.get(0).getBelongsToCollection());
System.out.println(movieList.get(0).getImdbID());
System.out.println(movieList.get(0).getStatus());
System.out.println(movieList.get(0).getSimilarMovies());
System.out.println(movieList.get(0).getLists());
System.out.println(movieList.get(0).getReviews());

Cannot add as dependency

I am using android studio to program and I tried to put :

repositories {
jcenter()
}

dependencies{
compile group: 'info.movito', name: 'themoviedbapi', version:'1.1'
}

in the grade dependency module. But I get an error that says :

Error:duplicate files during packaging of APK /Users/TahmidBhuiya/AndroidStudioProjects/JSON2/app/build/outputs/apk/app-debug-unaligned.apk

Can you please tell me what I am doing wrong ?

Getting season data when retrieving a show

I am currently struggling a bit with the following: I want to get all of the information of a certain show/serie. To get this to work I have coded the following:

public TvSeries getShowViaId(int id){
    TmdbTV show = api.getTvSeries();

    TvSeries serie = show.getSeries(id, "en", TmdbTV.TvMethod.values());

    return serie;
}

This returns the following data:
b678a6ca15f52fec95a80523b6480905

As you can see in the screenshot, it does not supply me with the majority of the data of a season. I've tried messing with the TmdbTV.TvMethod when calling the getSeries(), but this did not lead to anything.

Is there any way to get all of the season data without looping through every season and calling the TmdbTvSeasons.getSeason() method?

Discover Method

Hi,
Your discovery method should returns MovieResults instead of List
because after it's impossible to know the number of pages

best regards

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.