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
Small Plot IMDB Scraper!?
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="mortstar" data-source="post: 535810" data-attributes="member: 66294"><p>If you look at the current imdb scraper script you will see this section:</p><p></p><p>[CODE] <!-- Plot Summary --></p><p> <retrieve name='summary_page' url='http://www.imdb.com/title/${movie.site_id}/plotsummary'/></p><p> <parse name="summary" input="${summary_page}" regex="${rx_plot}"/></p><p> <set name="summary_clean" value="${summary[0][0]:striptags}" /></p><p> <set name="movie.summary" value="${summary_clean:htmldecode}" /></p><p></p><p> <!-- Plot Summary (if first method fails) --></p><p> <if test="${movie.summary}="></p><p> <parse name="summary2" input="${details_page}" regex="${rx_plot2}"/></p><p> <set name="summary_clean" value="${summary2[0][0]:striptags}" /></p><p> <set name="movie.summary" value="${summary_clean:htmldecode}" /></p><p> </if>[/CODE]What is happening here is that the scraper is looking for the long plot from the /plotsummary page at imdb. If this method fails to retrieve the (long) plot it falls back to secondary method, which is to grab the (short) plot from the film's main imdb page.</p><p></p><p>To change this behaviour, you could edit the scraper xml and reimport it into MovingPictures. You could change the code above to this:</p><p></p><p>[CODE] <!-- Do not retrieve long plot</p><p> <retrieve name='summary_page' url='http://www.imdb.com/title/${movie.site_id}/plotsummary'/></p><p> <parse name="summary" input="${summary_page}" regex="${rx_plot}"/></p><p> <set name="summary_clean" value="${summary[0][0]:striptags}" /></p><p> <set name="movie.summary" value="${summary_clean:htmldecode}" /> --></p><p></p><p> <!-- Plot Summary (Retrieve short plot) --></p><p> <parse name="summary2" input="${details_page}" regex="${rx_plot2}"/></p><p> <set name="summary_clean" value="${summary2[0][0]:striptags}" /></p><p> <set name="movie.summary" value="${summary_clean:htmldecode}" /></p><p> </if>[/CODE]</p><p></p><p>This should now pick up sort plot summary for you.</p></blockquote><p></p>
[QUOTE="mortstar, post: 535810, member: 66294"] If you look at the current imdb scraper script you will see this section: [CODE] <!-- Plot Summary --> <retrieve name='summary_page' url='http://www.imdb.com/title/${movie.site_id}/plotsummary'/> <parse name="summary" input="${summary_page}" regex="${rx_plot}"/> <set name="summary_clean" value="${summary[0][0]:striptags}" /> <set name="movie.summary" value="${summary_clean:htmldecode}" /> <!-- Plot Summary (if first method fails) --> <if test="${movie.summary}="> <parse name="summary2" input="${details_page}" regex="${rx_plot2}"/> <set name="summary_clean" value="${summary2[0][0]:striptags}" /> <set name="movie.summary" value="${summary_clean:htmldecode}" /> </if>[/CODE]What is happening here is that the scraper is looking for the long plot from the /plotsummary page at imdb. If this method fails to retrieve the (long) plot it falls back to secondary method, which is to grab the (short) plot from the film's main imdb page. To change this behaviour, you could edit the scraper xml and reimport it into MovingPictures. You could change the code above to this: [CODE] <!-- Do not retrieve long plot <retrieve name='summary_page' url='http://www.imdb.com/title/${movie.site_id}/plotsummary'/> <parse name="summary" input="${summary_page}" regex="${rx_plot}"/> <set name="summary_clean" value="${summary[0][0]:striptags}" /> <set name="movie.summary" value="${summary_clean:htmldecode}" /> --> <!-- Plot Summary (Retrieve short plot) --> <parse name="summary2" input="${details_page}" regex="${rx_plot2}"/> <set name="summary_clean" value="${summary2[0][0]:striptags}" /> <set name="movie.summary" value="${summary_clean:htmldecode}" /> </if>[/CODE] This should now pick up sort plot summary for you. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
Small Plot IMDB Scraper!?
Contact us
RSS
Top
Bottom