Bravo List

Bravo List (https://www.bvlist.com/index.php)
-   Community Cafe (https://www.bvlist.com/forumdisplay.php?f=18)
-   -   New DVD releases from moviefone.com (https://www.bvlist.com/showthread.php?t=6876)

joeroberts 20th August 2011 17:10

New DVD releases from moviefone.com
 
this is just a little something I Threw together this is not Source related.

The code is simple it well create an array of latest DVD releases
PHP Code:

$newdvds = @file_get_contents('http://www.moviefone.com/dvd');
preg_match_all('#<div class="hub-item">(.*)</div><!-- .hub-item -->#siU', $newdvds, $output, PREG_SET_ORDER);
$dvds = array();
foreach(
$output as $val){
if(!
is_array($val[0])){
preg_match_all('#<a class="movieTitle" href="(.*)">#siU', $val[0], $lk, PREG_SET_ORDER);
$link = $lk[0][1];
preg_match_all('#<a class="movieTitle" href="' . $link . '">(.*)</a>#siU', $val[0], $ti, PREG_SET_ORDER);
$title = $ti[0][1];
preg_match_all('#<img class="thePoster" onClick="window.location=\'' . $link . '\'" src="(.*)"#siU', $val[0], $im, PREG_SET_ORDER);
$image = $im[0][1];
preg_match_all('#<div class="openingSoon">(.*)</div>#siU', $val[0], $rd, PREG_SET_ORDER);
$redate = $rd[0][1];
$dvds[] = array(
'TITLE'        => $title,
'LINK'        => $link,
'POSTER'    => $image,
'RELEASED'    => $redate
);
}
} 

Now the rest is up to you
to use it you well use foreach function like so

PHP Code:

foreach($dvds as $val){
echo 
$val['TITLE'].'';
echo 
$val['LINK'].'';
echo 
$val['POSTER'].'';
echo 
$val['RELEASED'].'';
echo 
'';
} 

this well generate a list like so

Code:

Blitz (2010)
http://www.moviefone.com/movie/blitz/10046998/main
http://o.aolcdn.com/dims-photohub/dims/MOVS/5/125/185/75/http://www.aolcdn.com/ch_movies/no_image_125x186
August 16, 2011


The Best and the Brightest
http://www.moviefone.com/movie/the-best-and-the-brightest/10049301/main
http://o.aolcdn.com/dims-photohub/dims/MOVS/5/125/185/75/http://o.aolcdn.com/os/movies/movie_posters/10049301_p_m
August 16, 2011


The Conspirator
http://www.moviefone.com/movie/the-conspirator/10018132/main
http://o.aolcdn.com/dims-photohub/dims/MOVS/5/125/185/75/http://o.aolcdn.com/os/movies/movie_posters/10018132_p_m
August 16, 2011


Fynnon 20th August 2011 18:14

this is great joe but i had in mind something a little diffrent
what i think should be usefull for tracker users is a page where they can see the new scene releases

info can be pulled from diffrent sites which anounce scene releases taken from private irc, private ftp, etc
let`s say you want to announce in your tracker the next movies which will be uploaded, then you take the info form here:

http://hdrls.com/movies.html

here are a lot of othere pre-scene release sites: http://filesharefreak.com/2009/01/26/pre-database-scene-release-and-dupecheck-websites


All times are GMT +2. The time now is 20:45.

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