home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Launch a random trailer before movie
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RoChess" data-source="post: 743059" data-attributes="member: 18896"><p>Using first genre should work in most cases, however IMDb tends to alphabetize genres, meaning that a Thriller with some Action will be listed as "|Action|Thriller|".</p><p></p><p>I've actually noticed that the MPAA rating section at imdb.com sometimes allows for clarification on the main genre, so it could be possible to add scraper support for this.</p><p></p><p>Example:</p><p></p><p style="margin-left: 20px">The Matrix (1999)</p> <p style="margin-left: 20px">Genres = Action | Adventure | Sci-Fi</p> <p style="margin-left: 20px">MPAA = "Rated R for sci-fi violence and brief language."</p> <p style="margin-left: 20px"></p><p></p><p>Could use the 'sci-fi' reference from MPAA to import this as "|Sci-Fi|Action|Adventure|" with some scraper adjustments, so that first genre selection is correct. Would need to go through a much larger sample set to see if this is reliable on more then a few movies that I tried it on.</p><p></p><p>Another option would be to just take the contents of all the matches of "c:\trailers\${genre}\" on multiple genres (if that is possible), toss them in an array and pick a random one from that.</p></blockquote><p></p>
[QUOTE="RoChess, post: 743059, member: 18896"] Using first genre should work in most cases, however IMDb tends to alphabetize genres, meaning that a Thriller with some Action will be listed as "|Action|Thriller|". I've actually noticed that the MPAA rating section at imdb.com sometimes allows for clarification on the main genre, so it could be possible to add scraper support for this. Example: [INDENT]The Matrix (1999) Genres = Action | Adventure | Sci-Fi MPAA = "Rated R for sci-fi violence and brief language." [/INDENT] Could use the 'sci-fi' reference from MPAA to import this as "|Sci-Fi|Action|Adventure|" with some scraper adjustments, so that first genre selection is correct. Would need to go through a much larger sample set to see if this is reliable on more then a few movies that I tried it on. Another option would be to just take the contents of all the matches of "c:\trailers\${genre}\" on multiple genres (if that is possible), toss them in an array and pick a random one from that. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Launch a random trailer before movie
Contact us
RSS
Top
Bottom