c-eg / themoviedbapi Goto Github PK
View Code? Open in Web Editor NEWA Java wrapper around the JSON API provided by TheMovieDB.org
Home Page: https://www.themoviedb.org/
License: Other
A Java wrapper around the JSON API provided by TheMovieDB.org
Home Page: https://www.themoviedb.org/
License: Other
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
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?
Hello.
Apparently getCast() and getCrew() methods appear to be bugged as they return null for all instances tested, including the one used as an example in the readme file.
Why i got a error when i call this 3 method?
My code is:
List networkList = tvSeries.getNetworks();
The result is null but i don't know why.
does themoviedbapi work on Android?
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.
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 ;)
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.
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?
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
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.
Otherwise users will get query limit errrors
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.
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!
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.
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)
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!
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
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?
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.
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!
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.
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'`
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");
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! :-)
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);
}
Accessing this information?
I tried to look and found .
Already have or to wait ?
" Written in Portuguese , translated by google rs "
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 :)
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
Hello once again,
Functions stated above are returning 0 on getBudget() and getRevenue(), null on getStatus() if used iterating over the results list for getPopularMovies(). Not sure about the rest as only tested some of them. Forced me to make a workaround.
many fileds like cast,Images etc are coming null
I did
TmdbMovies movies = new TmdbApi(APIKEY).getMovies();
MovieDb movie = movies.getMovie(140607, "en");
Hello, I would like to change REGION params for the now playing movies and not just the language but I don't see if it's possible.
Thank you :)
getOverview() in always returns null when I make a request.
This happens only in the english language.
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
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.
getUserRating() in MovieDB returns 0.0 for all movies.
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
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.
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;
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?
example i want results exactly like this in android app --> https://www.themoviedb.org/person/237048-pawan-kalyan
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.
Does your wrapper have a method to get the recommended movies from a movie? I cant seem to find it.
This api endpoint:
https://developers.themoviedb.org/3/movies/get-movie-recommendations
Thanks
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());
It would be great if these 2 methods were implemented as it is for movies. Thanks !
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 ?
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:
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?
Hi,
Your discovery method should returns MovieResults instead of List
because after it's impossible to know the number of pages
best regards
Just wondering why not add MovieMethod to all request such getPopularMovies and getTopRatedMovies?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.