Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Project U-232
Reply
  #1  
Old 17th August 2019, 16:54
guldhammer's Avatar
guldhammer guldhammer is offline
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 52
Default Sub categories?
Will it be hard to make Sub Categories til U-232 v5?
Reply With Quote
  #2  
Old 18th August 2019, 09:56
Thor's Avatar
Thor Thor is offline
Administrator
 
Join Date: Jan 2017
United Kingdom
Posts: 18
Default
I thought that U-232 already had the ability to use Sub Categories?
Reply With Quote
  #3  
Old 18th August 2019, 12:51
guldhammer's Avatar
guldhammer guldhammer is offline
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 52
Default
Quote:
Originally Posted by Thor View Post
I thought that U-232 already had the ability to use Sub Categories?
Nope

Bump:
Reply With Quote
  #4  
Old 18th August 2019, 14:07
thartley55's Avatar
thartley55 thartley55 is offline
Senior Member
 
Join Date: Mar 2012
P2P
Posts: 93
Default
Yeah, they did away with torrent sub-cats with V5...or maybe even V4...not sure.
Reply With Quote
  #5  
Old 18th August 2019, 16:49
Napon's Avatar
Napon Napon is offline
Senior Member
 
Join Date: Feb 2016
P2P
Posts: 431
Default
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
__________________
https://uploadfiles.io/lgekz

Last edited by Napon; 18th August 2019 at 17:02.
Reply With Quote
  #6  
Old 18th August 2019, 17:15
guldhammer's Avatar
guldhammer guldhammer is offline
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 52
Default
Quote:
Originally Posted by Napon View Post
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
Yeah yeah, it is easy for you to say that nit is so hard.
Reply With Quote
  #7  
Old 25th August 2019, 04:27
antimidas's Avatar
antimidas antimidas is offline
Senior Member
 
Join Date: Mar 2011
P2P
Posts: 32
Default
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;'>&nbspfrom&nbsp&nbsp</span><span color='white'>".$omdb['imdbVotes']."</span><span style='color:grey;'>&nbspVotes</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>";
}
full instruction on 2-232 forums. As well as guide if you want to add tool for api's in admin panel and save them to database.

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;'>&nbspfrom&nbsp&nbsp</span><span color='white'>".$omdb['imdbVotes']."</span><span style='color:grey;'>&nbspVotes</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>";
}
full instruction on 2-232 forums. As well as guide if you want to add tool for api's in admin panel and save them to database.

https://u-232.dev/forum/index.php/topic,4362.0.html
Reply With Quote
  #8  
Old 17th September 2019, 13:17
guldhammer's Avatar
guldhammer guldhammer is offline
Senior Member
 
Join Date: Jan 2010
P2P
Posts: 52
Default
Quote:
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
Antimidas, now i have signed up at u-232.dev/forum, but i cannot find a guide to Subcategories.
Reply With Quote
  #9  
Old 17th September 2019, 19:52
antimidas's Avatar
antimidas antimidas is offline
Senior Member
 
Join Date: Mar 2011
P2P
Posts: 32
Default
https://u-232.dev/forum/index.php/to....html#msg21779
Reply With Quote
Reply

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