uwetrottmann / tmdb-java Goto Github PK
View Code? Open in Web Editor NEWJava wrapper around themoviedb.org API v3 using retrofit2 (inofficial).
License: Apache License 2.0
Java wrapper around themoviedb.org API v3 using retrofit2 (inofficial).
License: Apache License 2.0
On TestData Actor's Origin place has been updated and used the english translation as was intended.
Thanks for your great work.
After build the maven project and so adding the built jar as library my project runs in excpetion due to:
Caused by: java.lang.ClassNotFoundException: retrofit.converter.Converter
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)
Any help? All libraries has been correctly downloaded.
Thank you
Also move list to README instead of CHANGELOG.
spoken_languages for series is missing , kindly add this to the wrapper, thanks
TaggedImage Entity Missing title, overview and release_date fields, and having an invalid field image_type
Hello !
First of all thank you for this wrapper you did an amazing job,
I saw that tmdb offers a "trending" endpoint (here)
I couldn't find the appropriate way to call that endpoint using this wrapper, is it already implemented ?
Thanks in advance !
As Travis Bell mentioned on TMDb Forums their servers are unsynced. So there are cases that Throttler will fail.
Hi,
First thanks for this great and useful library ;)
I try to get the cast of the movie:
api api = new api();
Tmdb tmdb = new Tmdb();
tmdb.setApiKey(api.getTHEMOVIEDBAPIKey());
MoviesService movieService = tmdb.moviesService();
Movie movie = movieService.summary(Integer.valueOf(name),
Locale.getDefault().getLanguage());
for(int i = 0; i < movie.credits.cast.size(); i++)
{
cast.add(movie.credits.cast.get(i).name);
}
I get a NullPointerException at for(int i = 0; i < movie.credits.cast.size(); i++)
Is there any special method to get the cast or the crew?
Thanks in advance
ternes3
Tv tagline is missing, kindly add this to the wrapper, thanks
Hi, Love This Library But Every Time It is Called the application stops unexpectedly..
i am using the following code
TextView tv = (TextView) findViewById(R.id.textView);
Tmdb tmdb = new Tmdb();
tmdb.setApiKey("MYAPIKEY");
//int idint = Integer.parseInt("tt2555736");
MoviesService movieService = tmdb.moviesService();
Movie movie = movieService.summary(550);
String str = String.valueOf(movie.title);
tv.setText(str);
when every this Activity Is Called The App Stops...
I Have Tried Every Thing... The Activity Works Fine If I Delete The Code...
I Am Using Min SDK VER 14
target SDK VER 19
Please Help.. i couldn't figure out what is the problem...
After reading the retrofit 2 documentation and looking through the source, at least any @Get
is possibly broken. The current TMDB API returns all info on movie/{movie_id}
. However it appears that in the source that there are many calls to movie/{movie_id}/somecall
(e.g movie/{movie_id}/release_dates
. All returns appear to be null. I could make a PR that just returns the entire result on summary, but then the semantics of the API kinda break down. I can't find anything in the retrofit documentation on how to parse and return only specific parts of the response body. I just have learned about retrofit so I could be missing something.
While there is an endpoint for translations, they are missing from the Movie Object. Since i'm java newbie i'm c# dev, i could make a pull request however tbh i don't have any clue how this is working and what is this @get attributes, anyway.
You haven't uploaded 2.2.0 on central.
Log error code
09-07 04:58:05.958 21040-21040/com.ITAN.cinematheque E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.ArrayIndexOutOfBoundsException: length=0; index=5
at com.ITAN.cinematheque.activities.MainActivity.onClick(MainActivity.java:84)
at android.view.View.performClick(View.java:4439)
at android.widget.Button.performClick(Button.java:139)
at android.view.View$PerformClick.run(View.java:18395)
at android.os.Handler.handleCallback(Handler.java:725)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:176)
at android.app.ActivityThread.main(ActivityThread.java:5317)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
doInBackground() Code
int countt = 10;
for(int i=1;i<countt;i++) {
Tmdb tmdb = new Tmdb();
tmdb.setApiKey("76f029219decc8a8e1c6d5474e37d7c9");
MoviesService movieService = tmdb.moviesService();
ResultsPage movie = movieService.popular(i,"en");
int counttt = 19;
for(int ii = 0; ii<counttt;ii++) {
titlesa.add(movie.results.get(ii).title);
DateFormat sdf = new SimpleDateFormat("dd-mm-yyyy");
String str = sdf.format(movie.results.get(ii).release_date);
rdatea.add(str);
imageurla.add(movie.results.get(ii).poster_path);
mida.add(movie.results.get(ii).id);
}
//you can use a String[] array at the place of 550.
//String str = String.valueOf(movie.title);
}
//you can create multiple return statements or u can use if else statement for different commands.
return null;
///MenuInflater inflater = new MenuInflater(MainActivity.this);
//inflater.inflate(android.R.layout.simple_list_item_1, false);
}
error on method showToast(titles[5]);
The On Background method i not generating titles so titles index is = 0. so erro occurs.
The Problem is Why TMDB setting titles
https://plus.google.com/105811688148229485626/posts/St8iPHHENqf
- Added a 'origin_country' to TV search results
- Added a
production_companies
field to the TV info method- Added
first_air_date
to person crew credit methods
Use @Test
.
On Video entity type field can be enum since it gets only specific values, "Trailer","Teaser","Clip","Featurette","Opening Credits"
Hi
Please add vote_average
and vote_count
to the TvShow.java
it is already provided by the TMDB api
Thanks
the TMDB api offers a flag for including adult TV shows in the search service (https://developers.themoviedb.org/3/search/search-tv-shows), but this lib is missing that.
Also raising on https://github.com/UweTrottmann/trakt-java
See https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/#okhttpclients-should-be-shared
Would you accept a PR?
Should we update the ids of the entities from ints to longs?
Find results returns Movie , Person, TvSeason, TvEpisode where it should return BaseMovie, BasePerson, BaseTvSeason, BaseTvEpisode
i did every thing but i was unable to set the imageview image from poster path
public class showMovieInfo extends AsyncTask<Integer,Integer,String>{
protected void onPreExecute(Integer f){
//setting up variables for whole method
}
@Override
protected String doInBackground(Integer... params) {
Tmdb tmdb = new Tmdb();
tmdb.setApiKey("76f029219decc8a8e1c6d5474e37d7c9");
MoviesService movieService = tmdb.moviesService();
Movie movie = movieService.summary(550);
//String str = String.valueOf(movie.title);
return movie.overview;
///MenuInflater inflater = new MenuInflater(MainActivity.this);
//inflater.inflate(android.R.layout.simple_list_item_1, false);
}
protected void onProgressUpdated(Integer... progress)
{
}
protected void onPostExecute(String result)
{
Imageview.setImage(Picasso.with(this).load(painting.getImageUrl()).into(image);)
}
}
Any plans for adding support for RxJava by making service methods return observables?
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.