View Single Post
  #1  
Old 26th September 2021, 18:16
JohnHasher JohnHasher is offline
Coder
 
Join Date: Apr 2020
P2P
Posts: 62
Post OMDB Mod for xbtit and xbtitFM
OMDB DATA GRABBER V1 BY JOHNHASHER FOR XBTIT FM V3


ss:



Click the image to open in full size.
ABOUT:

Omdb mod for xbtitfm uses db to dump the fetched data with default 30 days expire (you can change this , see installtion part).

this mod uses w3 css for styling.

well all you need a api key to use omdb. if you don't have one , get it from here : https://www.omdbapi.com/apikey.aspx

Installation:

1. run the following sql command and don't forget to change the table prefix to your prefix in `TABLEPREFIX_omdb`:

CREATE TABLE `TABLEPREFIX_omdb` (
`mid` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`title` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`year` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`rated` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`released` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`runtime` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`genre` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`director` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`writer` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`country` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`actor` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`plot` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`lang` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`rating` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`type` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`production` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`exp` date DEFAULT NULL,
`pimg` text COLLATE utf8_bin DEFAULT NULL,
`ext` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`seasons` varchar(220) COLLATE utf8_bin DEFAULT NULL
);


2. upload the files.
(CAUTION : there are changes in torrents.php , details.php , torrent.details.tpl and block files , so if you have done any custom works on your files then find the omdb code from this following files and patch it by yourself.)

3. Open file : omdb.loader.php and add your api key and save it.

example:
$omdb_apikey = "#######"; // Your API KEY // ADD YOUR API KEY HERE....

OPTIONAL : (DO NOT CHANGE THIS , IF YOU DON'T KNOW.)
if you want to change the data expire period (default is 30 days) minimum is 1 , example : 1 month = 30 (default) , 3 months = 180.

example:
$omdb_exp = "30"; //interval to update cache data in db

4. Set folder permission of omdb/pos.img to 777 . (WARNING : if you don't do this, then images won't be cached to disk.)

5. DONE :) , now add an imdb id while uploading and check it out.

FUTURE UPDATES PLANNED:
*FEATURE TO EDIT THE EXISTING MOVIE DETAILS IN DATABASE.
*FETAURE TO CHANGE / REPLACE THE FETCHED IMAGE TO YOUR OWN POSTER IMAGE.
*IMPROVEMENTS IF ANY.

MORE:
this mod also includes popup omdb cover image for blocks and in torrents.php feature too.


If you like this mod please support me by donating.



PM me for donation / for custom mods.


Normal : https://ufile.io/smpkytml


For dark theme : https://ufile.io/z4dgxqel
__________________
i do custom mods in xbtitfm and torrenttrader for $$, PM me for details.
Reply With Quote
The Following User Says Thank You to JohnHasher For This Useful Post:
BamBam0077 (24th October 2021)