コード例 #1
0
ファイル: details.php プロジェクト: engine9-/newznab-tmux
     $episodeArray = $episode->getEpisodeInfoByID($data['episodeinfoid']);
 }
 $mov = '';
 if ($data['imdbid'] != '' && $data['imdbid'] != 00) {
     $movie = new Film();
     $mov = $movie->getMovieInfo($data['imdbid']);
     $trakt = new TraktTv();
     $traktSummary = $trakt->movieSummary('tt' . $data['imdbid'], 'full');
     if ($traktSummary !== false && isset($traktSummary['trailer']) && $traktSummary['trailer'] !== '' && preg_match('/[\\/?]v[\\/\\=](\\w+)$/i', $traktSummary['trailer'], $youtubeM)) {
         $mov['trailer'] = '<embed width="480" height="345" src="' . 'https://www.youtube.com/v/' . $youtubeM[1] . '" type="application/x-shockwave-flash"></embed>';
     } else {
         $mov['trailer'] = \newznab\utility\Utility::imdb_trailers($data['imdbid']);
     }
     if ($mov && isset($mov['title'])) {
         $mov['title'] = str_replace(array('/', '\\'), '', $mov['title']);
         $mov['actors'] = $movie->makeFieldLinks($mov, 'actors');
         $mov['genre'] = $movie->makeFieldLinks($mov, 'genre');
         $mov['director'] = $movie->makeFieldLinks($mov, 'director');
     } else {
         if ($traktSummary !== false) {
             $mov['title'] = str_replace(array('/', '\\'), '', $traktSummary['title']);
         } else {
             $mov = false;
         }
     }
 }
 $xxx = '';
 if ($data['xxxinfo_id'] != '' && $data['xxxinfo_id'] != 0) {
     $x = new XXX();
     $xxx = $x->getXXXInfo($data['xxxinfo_id']);
     if (isset($xxx['trailers'])) {