IMDB Poster URL Returns Referral Denied

后端 未结 1 714
清歌不尽
清歌不尽 2020-12-18 15:41

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 m

相关标签:
1条回答
  • 2020-12-18 16:09

    IMDB blocks the direct linking of images from their site on other sites, I think this previous question covers the topic.

    The easiest way to get around this is to download the image and host it yourself rather than linking IMDB's copy. Alternatively you could investigate alternative movie DBs to see if they can offer what you want - the answers to this question on IMDB APIs lists a few. The Movie DB API looks like a good bet.

    0 讨论(0)
提交回复
热议问题