in progress because i cant test fully on v3 so might need some tweeking

1) First transfer all files to root - check folder but should not write other any files
2) Make account at TMDB and go to settings/api to get v3 key https://www.themoviedb.org/settings/api
3) Enter api key in libraries/TMDB.php (line 17)

Then to test classes are working go to YOURSITEURL/movie-database.php

Hopefully you can see all the examples and the class is working fine - let me know if this page works please

Then we can add some sql and cache

sql - renamed tables
CREATE TABLE `tmdbfilm` (
 `id` int(10) NOT NULL AUTO_INCREMENT,
 `id_tmdb` int(10) NOT NULL DEFAULT 0,
 `title` varchar(255) DEFAULT NULL,
 `duration` varchar(100) DEFAULT NULL,
 `producer` varchar(255) DEFAULT NULL,
 `genre` varchar(255) DEFAULT NULL,
 `plot` text DEFAULT NULL,
 `actor` longtext DEFAULT NULL,
 `trailer` varchar(100) DEFAULT NULL,
 `date` datetime DEFAULT NULL,
 `image` varchar(50) DEFAULT NULL,
 UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM;

-- --------------------------------------------------------

--
-- Table structure for table `tmdbshow`
--

CREATE TABLE `tmdbshow` (
 `id` int(10) NOT NULL AUTO_INCREMENT,
 `id_tmdb` int(10) NOT NULL DEFAULT 0,
 `title` varchar(255) DEFAULT NULL,
 `image` varchar(50) DEFAULT NULL,
 `season` int(10) DEFAULT NULL,
 `episodes` int(10) DEFAULT NULL,
 `status` varchar(100) DEFAULT NULL,
 `date` datetime DEFAULT NULL,
 `creator` varchar(255) DEFAULT NULL,
 `genre` varchar(255) DEFAULT NULL,
 `plot` text DEFAULT NULL,
 `actor` longtext DEFAULT NULL,
 UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM;

ALTER TABLE torrents ADD `tmdb` varchar(125) DEFAULT NULL;


in torrents-upload.php
find
	if (!empty($_POST["name"]))
$name = $_POST["name"];


add below
if (!empty($_POST['tmdb']))
          $imdb = unesc($_POST['tmdb']);


find
$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time()."')");


add &tmdb example
$ret = SQL_Query_exec("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash, size, numfiles, save_as, announce, external, nfo, torrentlang, anon, last_action, tmdb) VALUES (".sqlesc($fname).", '".$CURUSER['id']."', ".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$catid."', '" . get_date_time() . "', '".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."', '".$langid."','$anon', '".get_date_time().", '".$tmdb."'')");


find
print ("<tr><td align='right'>" . T_("TORRENT_NAME") . ": </td><td align='left'><input type='text' name='name' size='60' value='" . $_POST['name'] . "' /><br />".T_("THIS_WILL_BE_TAKEN_TORRENT")." \n</td></tr>");


add below
print ("<tr><td align='right'>" . T_("TMDB") . ": </td><td align='left'> <input type='text' name='tmdb' size='60' value='" . $_POST['tmdb'] . "' /><br />(Link from TMDB. <b>Only for movie.</b>)<br />\n</td></tr>");


now upload torrent with category Anime and add TMDB link example https://www.themoviedb.org/movie/399566-godzilla-vs-kong

now to test TT side is working go to YOURSITEURL/movie-test.php?id=THE_ID_OF_UPLOADED_TORRENT

once i know base works on v3 i can add to torrents-details, edit etc

movie-database.php and movie-test.php are just to test everythings working and the classes are separate the only file that interacts with TT is the TMDBS.php the S on the end  is for sql - add or retrieve sql to TT.
v3 tmdb mod master.zip
File missing
Last edited by M-jay warn on 2021-11-20 17:38:27