Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Project U-232 (http://www.bvlist.com/forumdisplay.php?f=80)
-   -   Sub categories? (http://www.bvlist.com/showthread.php?t=12137)

guldhammer 17th August 2019 16:54

Sub categories?
 
Will it be hard to make Sub Categories til U-232 v5?

Thor 18th August 2019 09:56

I thought that U-232 already had the ability to use Sub Categories?

guldhammer 18th August 2019 12:51

Quote:

Originally Posted by Thor (Post 54000)
I thought that U-232 already had the ability to use Sub Categories?

Nope :ok:

Bump:

thartley55 18th August 2019 14:07

Yeah, they did away with torrent sub-cats with V5...or maybe even V4...not sure.

Napon 18th August 2019 16:49

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

guldhammer 18th August 2019 17:15

Quote:

Originally Posted by Napon (Post 54005)
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.

";

} else {
    $HTMLOUT.= "";
}
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 .= "
";

} else {
    $HTMLOUT.= "
";
}

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
antimidas 25th August 2019 04:27

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 .= "

       

        Title: " . $omdb['Title'] . "

        Released: " . $omdb['Released'] . "

        Genre: " . $omdb['Genre'] . "

        Rated: " . $omdb['Rated'] . "

        Director: " . $omdb['Director'] . "

        Cast: " . $omdb['Actors'] . "

        Studio: " . $omdb['Production'] . "

        Description: " . $omdb['Plot'] . "

    Runtime: " . $omdb['Runtime'] . "

    IMDB Rating: " . $omdb['imdbRating'] . "&nbspfrom&nbsp&nbsp".$omdb['imdbVotes']."&nbspVotes


    ";

            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 .= "

           

Trailer (Some videos may be unavailable in your region)

";
    $HTMLOUT .= "
No youtube data found

       

        Title: " . $omdb['Title'] . "

        Released: " . $omdb['Released'] . "

        Genre: " . $omdb['Genre'] . "

        Rated: " . $omdb['Rated'] . "

        Director: " . $omdb['Director'] . "

        Cast: " . $omdb['Actors'] . "

        Studio: " . $omdb['Production'] . "

        Description: " . $omdb['Plot'] . "

    Runtime: " . $omdb['Runtime'] . "

    IMDB Rating: " . $omdb['imdbRating'] . "&nbspfrom&nbsp&nbsp".$omdb['imdbVotes']."&nbspVotes


    ";

            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 .= "

           

Trailer (Some videos may be unavailable in your region)

";
    $HTMLOUT .= "
No youtube data found

guldhammer 17th September 2019 13:17

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.

antimidas 17th September 2019 19:52

https://u-232.dev/forum/index.php/to....html#msg21779


All times are GMT +2. The time now is 10:37.

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