Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
  #1  
Old 30th September 2011, 20:43
mmisu120000's Avatar
mmisu120000 mmisu120000 is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 202
Exclamation [FIX] IMDB.com
How to fix the IMDB rating:

in ts_imdb.php, find :
PHP Code:
$regex '#<span class="rating-rating">(.*)<span>#U'
(line 134)

and replace with this one:
PHP Code:
$regex '#<span itemprop="ratingValue">(.*)<span>#U'
__________________
"How terrible is wisdom when it holds no benefit for the wise?" - Louis Cypher
WDW Tracker - Using heavy modified TSSE
Reply With Quote
The Following 3 Users Say Thank You to mmisu120000 For This Useful Post:
bugmenot900 (28th May 2019), Fynnon (11th October 2011), Lolle (1st October 2011)
  #2  
Old 30th September 2011, 23:47
Danix's Avatar
Danix Danix is offline
Senior Member
 
Join Date: Jul 2008
Bulgaria
Posts: 37
Thumbs up
Little update from me:

Line 134
PHP Code:
$regex '#<span class="rating-rating">(.*)<span>#U'
replace with:
PHP Code:
$regex '#<span itemprop="ratingValue">(.*)</a>#U'
and line 136
PHP Code:
$regex '#href="ratings"[^>]*>(.*) votes</a>#U'
replace with:
PHP Code:
$regex '#itemprop="ratingCount"[^>]*>(.*)</span>#U'

Last edited by Danix; 30th September 2011 at 23:48. Reason: Update
Reply With Quote
The Following User Says Thank You to Danix For This Useful Post:
eckeO5 (7th December 2011)
  #3  
Old 1st October 2011, 00:11
n3v0n3r n3v0n3r is offline
Member
 
Join Date: Dec 2010
P2P
Posts: 12
Default Thanks
Thank you so much! <3
Reply With Quote
  #4  
Old 1st October 2011, 00:34
Danix's Avatar
Danix Danix is offline
Senior Member
 
Join Date: Jul 2008
Bulgaria
Posts: 37
Thumbs up Update for Stars
Little update for Stars
Find line 113, after line paste this:

PHP Code:
$regex '#<div class="txt-block"><h4 class="inline">Stars:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$starsPREG_SET_ORDER); 
find line 146

PHP Code:
$t_link '' '<table width=\'100%\' border=\'0\' align=\'center\' class=\'none\'><tr><td colspan=\'2\' class=\'none\' align=\'left\'><b>' $title '</b></td></tr><tr><td class=\'none\' align=\'center\' valign=\'top\'><img src=\'' $cover_photo_name '\' border=\'0\' alt=\'' $title '\' title=\'' $title '\'></td><td class=\'none\' valign=\'top\' align=\'left\'>' . ($alsoknownas[0][1] ? '<b>Also known as:</b> ' strip_tags (str_replace ('more'''$alsoknownas[0][1])) . '<br />' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '<br />' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '<br />' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '<br />' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '<br />' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '<br />' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '<br />' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '<br />' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<br /><b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<br /><b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '<br />') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<br /><b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<br /><b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<br /><b>Aspect ratio:</b> ' $aspectratio[0][1] . '<br />' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<br /><b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<br /><b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<br /><b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<br /><table width=\'100%\' border=\'0\' cellpadding=\'5\' cellspacing=\'0\'><tr><td align=\'center\' class=\'subheader\'><a href=\'' $trailers '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'><img border="0" class="inlineimg" src=\'' $BASEURL '/images/trailer.png\'></a></td></tr></table>' '') . ''); 
replace with:
PHP Code:
$t_link '' '<table width=\'100%\' border=\'0\' align=\'center\' class=\'none\'><tr><td colspan=\'2\' class=\'none\' align=\'left\'><b>' $title '</b></td></tr><tr><td class=\'none\' align=\'center\' valign=\'top\'><img src=\'' $cover_photo_name '\' border=\'0\' alt=\'' $title '\' title=\'' $title '\'></td><td class=\'none\' valign=\'top\' align=\'left\'>' . ($alsoknownas[0][1] ? '<b>Also known as:</b> ' strip_tags (str_replace ('more'''$alsoknownas[0][1])) . '<br />' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '<br />' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '<br />' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '<br />' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '<br />' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '<br />' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '<br />' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '<br />' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '<br />' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<br /><b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<br /><b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '<br />') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<br /><b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<br /><b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<br /><b>Aspect ratio:</b> ' $aspectratio[0][1] . '<br />' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<br /><b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<br /><b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<br /><b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<br /><table width=\'100%\' border=\'0\' cellpadding=\'5\' cellspacing=\'0\'><tr><td align=\'center\' class=\'subheader\'><a href=\'' $trailers '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'><img border="0" class="inlineimg" src=\'' $BASEURL '/images/trailer.png\'></a></td></tr></table>' '') . ''); 
and wait to fix IMDB trailers
Reply With Quote
The Following 5 Users Say Thank You to Danix For This Useful Post:
eckeO5 (7th December 2011), Lolle (1st October 2011), mmisu120000 (1st October 2011), nikosuk (3rd October 2011), PAX (11th October 2011)
  #5  
Old 1st October 2011, 21:30
Lolle Lolle is offline
Senior Member
 
Join Date: Mar 2011
Denmark
Posts: 25
Default
thank you

Last edited by Lolle; 1st October 2011 at 21:53.
Reply With Quote
  #6  
Old 10th October 2011, 20:48
Danix's Avatar
Danix Danix is offline
Senior Member
 
Join Date: Jul 2008
Bulgaria
Posts: 37
Thumbs up Update for IMDB Trailer
OK people, here we go update for IMDB Trailer

In include/ts_imdb.php
Find
PHP Code:
$regex '#<span class="video_slate" ><a href="(.*)"#U'
and replace with

PHP Code:
$regex '#<td id="overview-bottom"><a[^>]* href="(.*)"[^>]*>(.*)<span#U'
If your last line is different replace with this one

PHP Code:
$t_link '' '<table width=\'100%\' border=\'0\' align=\'center\' class=\'none\'><tr><td colspan=\'2\' class=\'none\' align=\'left\'><b>' $title '</b></td></tr><tr><td class=\'none\' align=\'center\' valign=\'top\'><img src=\'' $cover_photo_name '\' border=\'0\' alt=\'' $title '\' title=\'' $title '\'></td><td class=\'none\' valign=\'top\' align=\'left\'>' . ($alsoknownas[0][1] ? '<b>Also known as:</b> ' strip_tags (str_replace ('more'''$alsoknownas[0][1])) . '<br />' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '<br />' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '<br />' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '<br />' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '<br />' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '<br />' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '<br />' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '<br />' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '<br />' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<br /><b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<br /><b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '<br />') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<br /><b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<br /><b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<br /><b>Aspect ratio:</b> ' $aspectratio[0][1] . '<br />' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<br /><b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<br /><b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<br /><b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<br /><table width=\'100%\' border=\'0\' cellpadding=\'5\' cellspacing=\'0\'><tr><td align=\'center\' class=\'subheader\'><a href=\'' $trailers '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'><img border="0" class="inlineimg" src=\'' $BASEURL '/images/trailer.png\'></a></td></tr></table>' '') . ''); 
And don't forget to says Thanks
Attached Files
File Type: php ts_imdb.php (8.7 KB, 181 views)

Last edited by Danix; 18th October 2011 at 20:17. Reason: Last Update - 18.10.2011
Reply With Quote
The Following 5 Users Say Thank You to Danix For This Useful Post:
Fynnon (11th October 2011), gogo999 (20th November 2012), Marco (16th July 2012), Muikku (10th October 2011), PAX (11th October 2011)
  #7  
Old 10th October 2011, 21:18
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Default
Quote:
Originally Posted by Danix View Post
OK people, here we go update for IMDB Trailer
WHAT FILE TO ADD TOO ?
Reply With Quote
The Following 2 Users Say Thank You to wMan For This Useful Post:
mmisu120000 (11th October 2011), PAX (11th October 2011)
  #8  
Old 10th October 2011, 23:15
Verix's Avatar
Verix Verix is offline
Senior Member
 
Join Date: Feb 2009
Poland
Posts: 54
Default damn
Guys.
It doesn't work for me (5.6 nightcrawler) I have -10/-10 still a bug.

Edit: solution - http://www.bvlist.com/30342-post8.html ;)
Reply With Quote
  #9  
Old 11th October 2011, 07:27
mmisu120000's Avatar
mmisu120000 mmisu120000 is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 202
Default
Quote:
Originally Posted by wolfman View Post
WHAT FILE TO ADD TOO ?
include/ts_imdb.php
__________________
"How terrible is wisdom when it holds no benefit for the wise?" - Louis Cypher
WDW Tracker - Using heavy modified TSSE
Reply With Quote
  #10  
Old 18th October 2011, 20:23
Danix's Avatar
Danix Danix is offline
Senior Member
 
Join Date: Jul 2008
Bulgaria
Posts: 37
Thumbs up Last update from 18.10.2011
Quote:
Originally Posted by Danix View Post
OK people, here we go update for IMDB Trailer

In include/ts_imdb.php
Find
PHP Code:
$regex '#<span class="video_slate" ><a href="(.*)"#U'
and replace with

PHP Code:
$regex '#<td id="overview-bottom"><a[^>]* href="(.*)"[^>]*>(.*)<span#U'
If your last line is different replace with this one

PHP Code:
$t_link '' '<table width=\'100%\' border=\'0\' align=\'center\' class=\'none\'><tr><td colspan=\'2\' class=\'none\' align=\'left\'><b>' $title '</b></td></tr><tr><td class=\'none\' align=\'center\' valign=\'top\'><img src=\'' $cover_photo_name '\' border=\'0\' alt=\'' $title '\' title=\'' $title '\'></td><td class=\'none\' valign=\'top\' align=\'left\'>' . ($alsoknownas[0][1] ? '<b>Also known as:</b> ' strip_tags (str_replace ('more'''$alsoknownas[0][1])) . '<br />' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '<br />' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '<br />' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '<br />' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '<br />' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '<br />' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '<br />' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '<br />' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '<br />' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<br /><b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<br /><b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '<br />') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<br /><b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<br /><b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<br /><b>Aspect ratio:</b> ' $aspectratio[0][1] . '<br />' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<br /><b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<br /><b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<br /><b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<br /><table width=\'100%\' border=\'0\' cellpadding=\'5\' cellspacing=\'0\'><tr><td align=\'center\' class=\'subheader\'><a href=\'' $trailers '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'><img border="0" class="inlineimg" src=\'' $BASEURL '/images/trailer.png\'></a></td></tr></table>' '') . ''); 
And don't forget to says Thanks
This is last update from 18.10.2011
Attached Files
File Type: php ts_imdb.php (8.7 KB, 177 views)

Last edited by Danix; 18th October 2011 at 20:26. Reason: Include file ts_imdb.php
Reply With Quote
The Following 5 Users Say Thank You to Danix For This Useful Post:
DARCK (22nd October 2011), Fynnon (19th October 2011), Marco (19th October 2011), PAX (19th October 2011), wellqfk (11th November 2011)
Reply

Tags
fix , imdb , imdbcom , rating

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 10:38. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.