[SNIPPET] IMDb Rating

All about user-defined episode / movie / file name format expressions
Post Reply
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

[SNIPPET] IMDb Rating

Post by rednoah »

The default {rating} binding is based on TheMovieDB data. If you need IMDb ratings there is 2 options:

1. The built-in {imdb.rating} binding that is using data from this webservice: http://www.deanclatworthy.com/imdb/

Code: Select all

{imdb.rating}
2. If they above doesn't work you can try scraping the imdb rating directly from the webpage like this:

Code: Select all

{new URL("http://www.imdb.com/title/tt$imdbid").getText(requestProperties:['User-Agent':'Mozilla']).match(/(\d[.]\d)\/10/, 1)}
:idea: Please read the FAQ and How to Request Help.
Post Reply