imdb

Remote images displaying only sometimes

こ雲淡風輕ζ 提交于 2019-12-02 02:21:43
I maintain a local intranet site that among other things, displays movie poster images from IMDB.com. Until recently, I simply had a perl script download the images I needed and save them to the local server. But that became a HUGE space-hog, so I thought I could simply point my site directly to IMDB servers, since my traffic is very minimal. The result was that some images would display, while others wouldn't. And images that were displayed, would sometimes disappear after a few refreshes. The images existed on the IMDB servers, they just wouldn't display on my page. It seems unlikely to me

Start and setup in-memory DB using Spring

元气小坏坏 提交于 2019-11-29 17:37:31
问题 I'm writing a small demo application in Java using Spring, that needs to have access to a database. It should run on different machines and it would be far too much effort to setup a real database. Therefore I want to use an embedded one. The DB has a given schema (two tables) and some (very few) pre-defined entries. I'm looking for a simple way to start an in-memory database, create the tables and fill in the data. All of this should happen while initializing the Spring context. My approach

Why do I get a 403 error when I try open a URL

馋奶兔 提交于 2019-11-29 13:36:36
I am currently using the imdb api from http://imdbapi.org to get some information about a movie. When I use the API and try to open this url in java it gives me a 403 error. The url is supposed to return the data in JSON. Here is my code so far(Java 7): import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; public class Test { public static void main(String[] args) { URL url =null; try { url = new URL("http://imdbapi.org/?q=batman"); } catch (MalformedURLException e) {

IMDB Poster URL Returns Referral Denied

梦想与她 提交于 2019-11-29 08:42:22
In my Ruby on Rails app, I use the imdb gem (https://rubygems.org/gems/imdb) to search for a movie by title and grab the poster url and add it to the movie model I have in my database. Then in my view, I put that url in an image source tag and display the image to the user. I don't have any problems when I'm running my application locally, but when I deploy it to Heroku, sometimes a few images are rendered successfully but for the most part, they aren't displayed properly. I've tried multiple browsers and as it turns out when I try to load the image, I get a "Referral Denied" message saying:

Check if intent uri is available

人盡茶涼 提交于 2019-11-28 21:30:56
I have an app that sometimes links to imdb. I can do this with http://m.imdb.com/find or if it is available imdb:///find . My trouble is I can't find a way to check whether the imdb:// is available before it is too late. Because the link is clicked on by the user, I can't catch the android.content.ActivityNotFoundException exception. Am I missing something obvious? Solution: By inazaruk's suggestion I'm now using the follwing code: public static boolean isUriAvailable(Context context, String uri) { Intent test = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)); return context.getPackageManager()

Does IMDb provide an api or a data dump to get all title IDs?

南楼画角 提交于 2019-11-28 17:08:23
问题 IMDB provides plain text files user's can download and use which can be found here: IMDB Plain Text Files which is great but I don't see the ID used for each movie in any of the files. Given IMDB specifically says not to use scrapers, data gatherers etc in their Conditions of Use how would one obtain the title ID http://www.imdb.com/title/tt1133985/ for each movie if they aren't included in any of the plain text files. I've noticed there are some API's others have built that do include this

Why do I get a 403 error when I try open a URL

拈花ヽ惹草 提交于 2019-11-28 07:28:48
问题 I am currently using the imdb api from http://imdbapi.org to get some information about a movie. When I use the API and try to open this url in java it gives me a 403 error. The url is supposed to return the data in JSON. Here is my code so far(Java 7): import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.net.URL; public class Test { public static void main(String[] args) {

Given an IMDB movie id, how do I programmatically get its poster image?

喜欢而已 提交于 2019-11-28 05:29:41
movie id tt0438097 can be found at http://www.imdb.com/title/tt0438097/ What's the url for its poster image? As I'm sure you know, the actual url for that image is http://ia.media-imdb.com/images/M/MV5BMTI0MDcxMzE3OF5BMl5BanBnXkFtZTcwODc3OTYzMQ@@._V1._SX100_SY133_.jpg You're going to be hard pressed to figure out how it's generated though and they don't seem to have a publicly available API. Screenscraping is probably your best bet. The picture seems to generally be inside a div with class=photo and the name of the a tag is poster . The image itself is just inside the a tag. Check out http:/

IMDB Poster URL Returns Referral Denied

≯℡__Kan透↙ 提交于 2019-11-28 02:01:08
问题 In my Ruby on Rails app, I use the imdb gem (https://rubygems.org/gems/imdb) to search for a movie by title and grab the poster url and add it to the movie model I have in my database. Then in my view, I put that url in an image source tag and display the image to the user. I don't have any problems when I'm running my application locally, but when I deploy it to Heroku, sometimes a few images are rendered successfully but for the most part, they aren't displayed properly. I've tried multiple

Check if intent uri is available

和自甴很熟 提交于 2019-11-27 13:54:59
问题 I have an app that sometimes links to imdb. I can do this with http://m.imdb.com/find or if it is available imdb:///find . My trouble is I can't find a way to check whether the imdb:// is available before it is too late. Because the link is clicked on by the user, I can't catch the android.content.ActivityNotFoundException exception. Am I missing something obvious? Solution: By inazaruk's suggestion I'm now using the follwing code: public static boolean isUriAvailable(Context context, String