Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   [FIX] IMDB.com (http://www.bvlist.com/showthread.php?t=7049)

mmisu120000 30th September 2011 20:43

[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'


Danix 30th September 2011 23:47

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'


n3v0n3r 1st October 2011 00:11

Thanks
 
Thank you so much! <3

Danix 1st October 2011 00:34

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])) . '' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<b>Aspect ratio:</b> ' $aspectratio[0][1] . '' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<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])) . '' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<b>Aspect ratio:</b> ' $aspectratio[0][1] . '' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<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

Lolle 1st October 2011 21:30

thank you

Danix 10th October 2011 20:48

Update for IMDB Trailer
 
1 Attachment(s)
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])) . '' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<b>Aspect ratio:</b> ' $aspectratio[0][1] . '' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<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 :ok:

wMan 10th October 2011 21:18

Quote:

Originally Posted by Danix (Post 30585)
OK people, here we go update for IMDB Trailer

WHAT FILE TO ADD TOO ?

Verix 10th October 2011 23:15

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 ;)

mmisu120000 11th October 2011 07:27

Quote:

Originally Posted by wolfman (Post 30586)
WHAT FILE TO ADD TOO ?

include/ts_imdb.php

Danix 18th October 2011 20:23

Last update from 18.10.2011
 
1 Attachment(s)
Quote:

Originally Posted by Danix (Post 30585)
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])) . '' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '' '') . '<b>Genre:</b> ' strip_tags (str_replace ('more'''$genre[0][1])) . '' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<b>Aspect ratio:</b> ' $aspectratio[0][1] . '' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<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 :ok:

This is last update from 18.10.2011

x360zone 19th October 2011 09:06

O.M.G
 
thank you very much all working very well cheers Danix

ant 4th February 2013 21:10

help
 
is it me or has the imdb gone again from the ts 5.6 thankz

mmisu120000 6th February 2013 01:42

yeah, but only the poster is not showing ...

rabtb 6th February 2013 02:01

anyone got fix for posters ?

mmisu120000 25th February 2013 07:45

1 Attachment(s)
I managed to fix the imdb poster miss ...

Here you go:

Attachment 4085

You must replace the file /include/ts_imdb.php with the one I uploaded here...

NOTE!
In order to function you must input the imdb link in the http://imdb.com/title......../ form, you DO NOT write like that: http://www.imdb.com/title/tt1540128/?ref_=sr_1/ , you must input only the http://www.imdb.com/title/tt1540128/ (I didn't have time to make a filter to eliminate that ?ref=..... maybe someone will, now it's easy, i think)



Good luck!

Bump: Here is an upgrade for the "genre" to work as well ...

I will put the code here, it's more conclusive...:

/include/ts_imdb.php :

PHP Code:

<?
/***********************************************/
/*=========[TS Special Edition v.5.6]==========*/
/*=============[Special Thanks To]=============*/
/*        DrNet - wWw.SpecialCoders.CoM        */
/*          Vinson - wWw.Decode4u.CoM          */
/*    MrDecoder - wWw.Fearless-Releases.CoM    */
/*           Fynnon - wWw.BvList.CoM           */
/***********************************************/


  
function cleanstring ($imputString)
  {
    
$whatToCleanArray = array (chr (13), chr (10), chr (13) . chr (10), chr (10) . chr (13), '
'
'  ''   ''    ''

'
'

'
);
    
$cleanWithArray = array ('''''''''''''''''''');
    
$cleaned str_replace ($whatToCleanArray$cleanWithArray$imputString);
    
$cleaned trim ($cleaned);
    return 
$cleaned;
  }

  function 
fetch_data ($url$cleantext true)
  {
    @
ini_set ('user_agent''TS_SE via cURL/PHP');
    
$data false;
    if ((
function_exists ('curl_init') AND $ch curl_init ()))
    {
      
curl_setopt ($chCURLOPT_URL$url);
      
curl_setopt ($chCURLOPT_TIMEOUT90);
      
curl_setopt ($chCURLOPT_RETURNTRANSFERtrue);
      
curl_setopt ($chCURLOPT_HEADERfalse);
      
curl_setopt ($chCURLOPT_USERAGENT'TS_SE via cURL/PHP');
      
$data curl_exec ($ch);
      
curl_close ($ch);
    }

    if ((!
$data AND !ini_get ('allow_url_fopen') == 0))
    {
      
$contents '';
      if (
$handle = @fopen ($url'rb'))
      {
        while (!
feof ($handle))
        {
          
$contents .= fread ($handle8192);
        }

        
fclose ($handle);
        
$data $contents;
      }
    }

    if (!
$data)
    {
      
$data file_get_contents ($url);
    }

    return (
$cleantext == true cleanstring ($data) : $data);
  }

  @
error_reporting (E_ALL & ~E_NOTICE);
  @
ini_set ('error_reporting'E_ALL & ~E_NOTICE);
  @
ini_set ('display_errors''0');
  @
ini_set ('log_errors''1');
  @
ini_set ('max_execution_time''20000');
  @
ini_set ('max_input_time''20000');
  
define ('TS_IMDB_VERSION''0.9 by xam');
  if (((!
defined ('IN_TRACKER') OR !defined ('IN_SCRIPT_TSSEv56')) OR !defined ('TU_VERSION')))
  {
    exit (
'<font face=\'verdana\' size=\'2\' color=\'darkred\'><b>Error!</b> Direct initialization of this file is not allowed.</font>');
  }

  
$regex '#http://www.imdb.com/title/(.*)/#U';
  
preg_match ($regex$t_link$_id_);
  
$_id_ $_id_[1];
  
$url '' 'http://www.imdb.com/title/' $_id_ '/';
  
$text fetch_data ($url);
  
preg_match"#<td rowspan=\"2\" id=\"img_primary\"><a.*><img src=\"(.*)\" .*></a></td>#isU"$text$photo );
  
  
/** Poster by bibicu (mmisu120000) **/
  
$source file_get_contents("http://www.imdbapi.com/?i=" $_id_ "");
  
$arr json_decode($sourcetrue);
  
$cover_photo_url $arr['Poster'];
  
$genre_bibicu $arr['Genre'];
  
  
$cover_photo_name '' $torrent_dir '/images/' $_id_ '.jpg';
  if (
file_exists ($cover_photo_name))
  {
    
unlink ($cover_photo_name);
  }

  
$handle fopen ($cover_photo_name'x');
  
fwrite ($handlefetch_data ($cover_photo_urlfalse));
  
fclose ($handle);
  
$regex '#<title>(.*)</title>#U';
  
preg_match_all ($regex$text$titlePREG_SET_ORDER);
  
$regex '#<h2>Storyline</h2>(.*)<span#U';
  
preg_match_all ($regex$text$plotPREG_SET_ORDER);
  
$regex '#<div class="see-more inline canwrap"><h4 class="inline">Genres:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$genrePREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Director:</h4><a(.*)>(.*)</div>#U';
  
preg_match_all ($regex$text$directorPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Directors:</h4><a(.*)>(.*)</div>#U';
  
preg_match_all ($regex$text$directorsPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Writer:</h4><a(.*)>(.*)</div>#U';
  
preg_match_all ($regex$text$writerPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Writers:</h4><a(.*)>(.*)</div>#U';
  
preg_match_all ($regex$text$writersPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Language:</h4><a(.*)>(.*)</div>#U';
  
preg_match_all ($regex$text$languagePREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Country:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$countryPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Official Sites:</h4>(.*)<span class="see-more inline">#U';
  
preg_match_all ($regex$text$officialsitesPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Budget:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$budgetPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Also Known As:</h4>(.*)<a#U';
  
preg_match_all ($regex$text$alsoknownasPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Aspect Ratio:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$aspectratioPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Sound Mix:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$soundmixPREG_SET_ORDER);
  
$regex '#<td id="overview-bottom"><a[^>]* href="(.*)"[^>]*>(.*)<span#U';
  
preg_match_all ($regex$text$trailerPREG_SET_ORDER);
  
$regex '#<div class="see-more inline canwrap"><h4 class="inline">Plot Keywords:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$plotkeywordsPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Taglines:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$taglinesPREG_SET_ORDER);
  
$regex '#<span itemprop="ratingValue">(.*)</a>#U'
  
preg_match_all ($regex$text$ratingPREG_SET_ORDER);
  
$regex '#itemprop="ratingCount"[^>]*>(.*)</span>#U';
  
preg_match_all ($regex$text$usersPREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Runtime:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$runtimePREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Release Date:</h4>(.*)<span#U';
  
preg_match_all ($regex$text$releasedatePREG_SET_ORDER);
  
$regex '#<div class="txt-block"><h4 class="inline">Stars:</h4>(.*)</div>#U';
  
preg_match_all ($regex$text$starsPREG_SET_ORDER);
  
$title strip_tags ($title[0][1]);
  
$trailers '' 'http://www.imdb.com' $trailer[0][1] . '';
  
$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])) . '' '') . ($officialsites[0][1] ? '<b>Official sites:</b> ' str_replace ('more'''$officialsites[0][1]) . '' '') . ($director[0][2] ? '<b>Director:</b> ' strip_tags (str_replace ('more'''$director[0][2])) . '' '') . ($directors[0][2] ? '<b>Directors:</b> ' strip_tags (str_replace ('more'''$directors[0][2])) . '' '') . ($writer[0][2] ? '<b>Writer:</b> ' strip_tags (str_replace ('more'''$writer[0][2])) . '' '') . ($writers[0][2] ? '<b>Writers:</b> ' strip_tags (str_replace ('more'''$writers[0][2])) . '' '') . ($stars[0][1] ? '<b>Stars:</b> ' str_replace ('more'''$stars[0][1]) . '' '') . '<b>Genre:</b> ' $genre_bibicu .''strip_tags (str_replace ('more'''$genre[0][1])) . '' . ($releasedate[0][1] ? '<b>Release date:</b> ' $releasedate[0][1] . '' '') . '<b>User Rating:</b> ' strip_tags ($rating[0][1]) . ' (' $users[0][1] . ' votes)' . ('' '<b>Language:</b> ' strip_tags (str_replace ('more'''$language[0][2])) . '<b>Country:</b> ' strip_tags (str_replace ('more'''$country[0][1])) . '') . ($runtime[0][1] ? '<b>Runtime:</b> ' $runtime[0][1] . '' '') . ($budget[0][1] ? '<b>Budget:</b> ' $budget[0][1] . '' '') . ($soundmix[0][1] ? '<b>Sound mix:</b> ' strip_tags (str_replace ('more'''$soundmix[0][1])) . '' '') . ($aspectratio[0][1] ? '<b>Aspect ratio:</b> ' $aspectratio[0][1] . '' '') . '<b>Storyline:</b> ' strip_tags (str_replace ('more'''$plot[0][1])) . ($plotkeywords[0][1] ? '<b>Plot keywords:</b> ' strip_tags (str_replace ('more'''$plotkeywords[0][1])) . '' '') . ($taglines[0][1] ? '<b>Taglines:</b> ' strip_tags (str_replace ('more'''$taglines[0][1])) . '' '') . ('' '<b>IMDb link:</b> <a href=\'' $t_link '\' target=\'_blank\' alt=\'' $title '\' title=\'' $title '\'>' $t_link '</a></td></tr></table>' . ($trailer[0][1] ? '<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>' '') . '');
  
?>


Marco 4th January 2017 18:36

ts_imdb
 
did have anyone a newer version? :)

thanks.

imdb did not store the images on they one server is at amazon

https://images-na.ssl-images-amazon....xxxxxxxxxx.jpg

later edit

i found an alternate solutions, (third party) but if you have better option please share with us :)


All times are GMT +2. The time now is 07:38.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.