Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
  #1  
Old 12th August 2011, 21:35
Verix's Avatar
Verix Verix is offline
Senior Member
 
Join Date: Feb 2009
Poland
Posts: 54
Exclamation IMDB on TS SE 5.6 needs update!
Hi,
I think that the imbd company has changed the code of this item on ts se 5.6. Is anybody able to fix it?

Here's my ts_imbd.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_ '/';
  
$url1 '' 'http://www.imdb.com/title/' $_id_ '/synopsis';
  
$text fetch_data ($url);
  
$text1 fetch_data ($url1);
  
$regex '#<div class="photo"><a name="poster" href="/rg/action-box-title/primary-photo/media/(.*)"#U';
  
preg_match_all ($regex$text1$rmPREG_SET_ORDER);
  
$rm1 '' 'http://www.imdb.com/media/' $rm[0][1] . '';
  
$text2 fetch_data ($rm1);
  
preg_match ('/<div class="primary"><table width="100%" cellspacing="0" cellpadding="0"><tr><td height="426" width="100%" align="center"><img id="primary-img" title="" alt=".*" src="(.*)" data-rmconst=".*" \\/><\\/td><\\/tr><\\/table><\\/div>/isU'$text2$photo);
  
  
$cover_photo_url $photo[1];
  
$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 '#<span class="video_slate" ><a href="(.*)"#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 class="rating-rating">(.*)<span>#U';
  
preg_match_all ($regex$text$ratingPREG_SET_ORDER);
  
$regex '#<span class="mellow">(.*)</a>#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);
  
$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 '\' width=\'214\' 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] . ')' . ('' '<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>' '') . '');
  
?>
Summing up the image does not show on the torrent details.

Not officialy I claim that the imbd company twice a year change the code.
Please help me and other guys that have this problem.

thanks:bubble:
Reply With Quote
  #2  
Old 12th August 2011, 23:13
lafouine022 lafouine022 is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 120
Wink
http://www.bvlist.com/templateshares-se/5485-imdb.html

Here is my ts imbd

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_ '/';
  
$url1 '' 'http://www.imdb.com/title/' $_id_ '/synopsis';
  
$text fetch_data ($url);
  
$text1 fetch_data ($url1);
  
preg_match ('/<div class="photo"><a name="poster" href=".*" title=".*"><img border="0" id="primary-poster" alt=".*" title=".*" src="(.*)" \\/><\\/a><\\/div>/isU'$text1$photo);
  
//preg_match ('/<div><a href=".*"><img src="(.*)" height=".*" width=".*" alt=".*" title=".*" \\/><\\/a><\\/div>/isU', $text, $photo);
  
  
$cover_photo_url $photo[1];
  
$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 '#<span class="video_slate" ><a href="(.*)"#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 class="rating-rating">(.*)<span>#U';
  
preg_match_all ($regex$text$ratingPREG_SET_ORDER);
  
$regex '#<span class="mellow">(.*)</a>#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>(.*)</div>#U';
  
preg_match_all ($regex$text$releasedatePREG_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])) . '<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] . ')' . ('' '<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>' '') . '');
  
?>
Reply With Quote
The Following 4 Users Say Thank You to lafouine022 For This Useful Post:
Marco (20th August 2011), mmisu120000 (20th August 2011), nikosuk (21st August 2011), Verix (19th October 2011)
Reply

Tags
56 , imdb , se , update

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 16:18. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.