mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 09:18:54 +00:00
25 lines
686 B
PHP
25 lines
686 B
PHP
<?php
|
|
require_once realpath(dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'bootstrap.php');
|
|
|
|
use nntmux\db\Settings;
|
|
use nntmux\RottenTomato;
|
|
|
|
$s = new Settings();
|
|
$rtkey = $s->getSetting('rottentomatokey');
|
|
$rt = new RottenTomato($rtkey);
|
|
|
|
if (isset($rtkey) && $rtkey !='')
|
|
{
|
|
$rt = new RottenTomato($rtkey);
|
|
|
|
//print_r($rt->getMoviesBoxOffice());
|
|
//print_r($rt->getMoviesInTheaters());
|
|
//print_r($rt->getOpeningMovies());
|
|
//print_r($rt->getUpcomingMovies());
|
|
//print_r($rt->getNewDvdReleasess());
|
|
//print_r($rt->getMovieInfo("770805418"));
|
|
//print_r($rt->getMovieReviews("770805418"));
|
|
//print_r($rt->getMovieCast("770805418"));
|
|
print_r($rt->movieSearch("moviename"));
|
|
}
|