|
#1
|
|||
|
|||
Sub categories?
Will it be hard to make Sub Categories til U-232 v5?
|
#2
|
|||
|
|||
I thought that U-232 already had the ability to use Sub Categories?
|
#3
|
|||
|
|||
Quote:
Bump: |
#4
|
|||
|
|||
Yeah, they did away with torrent sub-cats with V5...or maybe even V4...not sure.
|
#5
|
|||
|
|||
take sub-catsout of the v3 and put to v5 its not hard to do its all the same code but v5 as alot more unwanted crap on it..As for the IMDb no hope could not even code that up lol should have done a API IMDb so not alot of new updates done on it only filled it up with unwanted crap
Last edited by Napon; 18th August 2019 at 17:02. |
#6
|
|||
|
|||
Quote:
|
#7
|
|||
|
|||
come to u232 forums. v3 subcats CANNOT just be dropped in. plz do not listen to the idiot. forums at u-232.dev/forum. there is already a post on what you want
Bump: Also, there is a replacement for imdb on the u232 forums. A setup for omdb api and tmdb to auto grab trailers as well. Bump: here is ombd and tmdb. Code:
////////////OMDB & TMDB by Antimidas and Tundracanine 2018-2019 if (in_array($torrents['category'], $INSTALLER09['movie_cats']){ $INSTALLER09['omdb_key'] = add key here; $INSTALLER09['tmdb_key'] = add here; $imdb_id_new = 0; if (preg_match('(.com/title/tt\d+)', $torrents_txt['descr'], $im_match_imdb) && $torrents['url'] == '') { $imdb_id_new = str_replace(".com/title/tt", "", $im_match_imdb[0]); $torrents['url'] = 'https://www.imdb.com/title/tt' . $imdb_id_new; } elseif (preg_match('(.com/title/tt\d+)', $torrents['url'], $im_match_imdb) && $torrents['url'] != '') { $imdb_id_new = str_replace(".com/title/tt", "", $im_match_imdb[0]); } if ($torrents['url'] != '') { $imdb_id = $imdb_id_new; $url = file_get_contents("https://www.omdbapi.com/?i=tt" . $imdb_id . "&plot=full&tomatoes=True&r=json&apikey=" . $INSTALLER09['omdb_key'].""); $omdb = json_decode($url, true); foreach ($omdb['Ratings'] as $rat => $rate); $poster = $omdb['Poster']; if ($poster != "N/A") { $omdb['Poster'] = "/imdb/images/" . $imdb_id . ".jpg"; if (!file_exists('./imdb/images/' . $imdb_id . '.jpg')) { @copy("$poster", "./imdb/images/" . $imdb_id . ".jpg"); } } else { if ($poster == "N/A") { $omdb['Poster'] = "./pic/nopostermov.jpg"; } } ///////////TMDB Trailer scrape////////////// i $json = file_get_contents("https://api.themoviedb.org/3/movie/tt" . $imdb_id . "/videos?api_key=". $INSTALLER09['tmdb_key'].""); $tmdb = json_decode($json, true); foreach ($tmdb['results'] as $key => $test) { $yt = $test['key']; $trailer = 'https://www.youtube.com/embed/' . $yt . ''; } if ($omdb['Title'] != '') { $HTMLOUT .= "<div style='width: 100%; display: table;''><tr><th class=' col-md-1 text-center'> </th><div style='display: inline;width:70%;float:right;'><th class=' col-md-5 text-left'> <strong><font color='#79c5c5'>Title:</font></strong><font style='font-size:24px;' color='white'> " . $omdb['Title'] . "</font><br/> <strong><font color='#79c5c5'>Released:</font></strong><font color='grey'> " . $omdb['Released'] . "</font><br/> <strong><font color='#79c5c5'>Genre:</font></strong><font color='grey'> " . $omdb['Genre'] . "</font><br/> <strong><font color='#79c5c5'>Rated:</font></strong><font color='grey'> " . $omdb['Rated'] . "</font><br/> <strong><font color='#79c5c5'>Director:</font></strong><font color='grey'> " . $omdb['Director'] . "</font><br/> <strong><font color='#79c5c5'>Cast:</font></strong><font color='grey'> " . $omdb['Actors'] . "</font><br/> <strong><font color='#79c5c5'>Studio:</font></strong><font color='grey'> " . $omdb['Production'] . "</font><br/> <strong><font color='#79c5c5'>Description:</font></strong><font color='grey'> " . $omdb['Plot'] . "</font><br/> <strong><font color='#79c5c5'>Runtime:</font></strong><font color='grey'> " . $omdb['Runtime'] . "</font><br/> <strong><font color='#79c5c5'>IMDB Rating:</font></strong><span color='white'> " . $omdb['imdbRating'] . "</span><span style='color:grey;'> from  </span><span color='white'>".$omdb['imdbVotes']."</span><span style='color:grey;'> Votes</span><br/><br/> </div></div>"; if (empty($torrents["poster"]) or ($torrents["poster"] == "./pic/nopostermov.jpg") && $omdb['Poster'] != "./pic/nopostermov.jpg") { sql_query("UPDATE torrents SET poster = " . sqlesc($omdb['Poster']) . " WHERE id = $id LIMIT 1") or sqlerr(__file__, __line__); $torrents["poster"] = $omdb['Poster']; $torrent_cache['poster'] = $omdb['Poster']; if ($torrent_cache) { $mc1->update_row(false, $torrent_cache); $mc1->commit_transaction($INSTALLER09['expires']['torrent_details']); $mc1->delete_value('top5_tor_'); $mc1->delete_value('last5_tor_'); $mc1->delete_value('scroll_tor_'); } } } } } if (empty($torrents['poster']) or ($torrents['poster'] == './pic/noposter.jpg') && $image != './pic/noposter.jpg') { } if (!empty($trailer)) { $HTMLOUT .= "<div class='row' style='background-color:rgba(0,0,0,0);;'> <div class='col-md-12'><h3 class='text-center'><strong><font color='#79c5c5'>Trailer </font></strong><span style='font-size:12px;'>(Some videos may be unavailable in your region)</span></h3><br>"; $HTMLOUT .= "<div><iframe style='margin-left:13%;text-align:center;justify-content:center;' id=\"ytplayer\" type=\"text/html\" width=\"75%\" height=\"450px\" src=\"$trailer\" frameborder=\"0\"></iframe></div></td></tr>"; } else { $HTMLOUT.= "<tr><td>No youtube data found</td></tr>"; } https://u-232.dev/forum/index.php/topic,4362.0.html Bump: here is ombd and tmdb. Code:
////////////OMDB & TMDB by Antimidas and Tundracanine 2018-2019 if (in_array($torrents['category'], $INSTALLER09['movie_cats']){ $INSTALLER09['omdb_key'] = add key here; $INSTALLER09['tmdb_key'] = add here; $imdb_id_new = 0; if (preg_match('(.com/title/tt\d+)', $torrents_txt['descr'], $im_match_imdb) && $torrents['url'] == '') { $imdb_id_new = str_replace(".com/title/tt", "", $im_match_imdb[0]); $torrents['url'] = 'https://www.imdb.com/title/tt' . $imdb_id_new; } elseif (preg_match('(.com/title/tt\d+)', $torrents['url'], $im_match_imdb) && $torrents['url'] != '') { $imdb_id_new = str_replace(".com/title/tt", "", $im_match_imdb[0]); } if ($torrents['url'] != '') { $imdb_id = $imdb_id_new; $url = file_get_contents("https://www.omdbapi.com/?i=tt" . $imdb_id . "&plot=full&tomatoes=True&r=json&apikey=" . $INSTALLER09['omdb_key'].""); $omdb = json_decode($url, true); foreach ($omdb['Ratings'] as $rat => $rate); $poster = $omdb['Poster']; if ($poster != "N/A") { $omdb['Poster'] = "/imdb/images/" . $imdb_id . ".jpg"; if (!file_exists('./imdb/images/' . $imdb_id . '.jpg')) { @copy("$poster", "./imdb/images/" . $imdb_id . ".jpg"); } } else { if ($poster == "N/A") { $omdb['Poster'] = "./pic/nopostermov.jpg"; } } ///////////TMDB Trailer scrape////////////// i $json = file_get_contents("https://api.themoviedb.org/3/movie/tt" . $imdb_id . "/videos?api_key=". $INSTALLER09['tmdb_key'].""); $tmdb = json_decode($json, true); foreach ($tmdb['results'] as $key => $test) { $yt = $test['key']; $trailer = 'https://www.youtube.com/embed/' . $yt . ''; } if ($omdb['Title'] != '') { $HTMLOUT .= "<div style='width: 100%; display: table;''><tr><th class=' col-md-1 text-center'> </th><div style='display: inline;width:70%;float:right;'><th class=' col-md-5 text-left'> <strong><font color='#79c5c5'>Title:</font></strong><font style='font-size:24px;' color='white'> " . $omdb['Title'] . "</font><br/> <strong><font color='#79c5c5'>Released:</font></strong><font color='grey'> " . $omdb['Released'] . "</font><br/> <strong><font color='#79c5c5'>Genre:</font></strong><font color='grey'> " . $omdb['Genre'] . "</font><br/> <strong><font color='#79c5c5'>Rated:</font></strong><font color='grey'> " . $omdb['Rated'] . "</font><br/> <strong><font color='#79c5c5'>Director:</font></strong><font color='grey'> " . $omdb['Director'] . "</font><br/> <strong><font color='#79c5c5'>Cast:</font></strong><font color='grey'> " . $omdb['Actors'] . "</font><br/> <strong><font color='#79c5c5'>Studio:</font></strong><font color='grey'> " . $omdb['Production'] . "</font><br/> <strong><font color='#79c5c5'>Description:</font></strong><font color='grey'> " . $omdb['Plot'] . "</font><br/> <strong><font color='#79c5c5'>Runtime:</font></strong><font color='grey'> " . $omdb['Runtime'] . "</font><br/> <strong><font color='#79c5c5'>IMDB Rating:</font></strong><span color='white'> " . $omdb['imdbRating'] . "</span><span style='color:grey;'> from  </span><span color='white'>".$omdb['imdbVotes']."</span><span style='color:grey;'> Votes</span><br/><br/> </div></div>"; if (empty($torrents["poster"]) or ($torrents["poster"] == "./pic/nopostermov.jpg") && $omdb['Poster'] != "./pic/nopostermov.jpg") { sql_query("UPDATE torrents SET poster = " . sqlesc($omdb['Poster']) . " WHERE id = $id LIMIT 1") or sqlerr(__file__, __line__); $torrents["poster"] = $omdb['Poster']; $torrent_cache['poster'] = $omdb['Poster']; if ($torrent_cache) { $mc1->update_row(false, $torrent_cache); $mc1->commit_transaction($INSTALLER09['expires']['torrent_details']); $mc1->delete_value('top5_tor_'); $mc1->delete_value('last5_tor_'); $mc1->delete_value('scroll_tor_'); } } } } } if (empty($torrents['poster']) or ($torrents['poster'] == './pic/noposter.jpg') && $image != './pic/noposter.jpg') { } if (!empty($trailer)) { $HTMLOUT .= "<div class='row' style='background-color:rgba(0,0,0,0);;'> <div class='col-md-12'><h3 class='text-center'><strong><font color='#79c5c5'>Trailer </font></strong><span style='font-size:12px;'>(Some videos may be unavailable in your region)</span></h3><br>"; $HTMLOUT .= "<div><iframe style='margin-left:13%;text-align:center;justify-content:center;' id=\"ytplayer\" type=\"text/html\" width=\"75%\" height=\"450px\" src=\"$trailer\" frameborder=\"0\"></iframe></div></td></tr>"; } else { $HTMLOUT.= "<tr><td>No youtube data found</td></tr>"; } https://u-232.dev/forum/index.php/topic,4362.0.html |
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
|
|
|