Some class in php that I use on some project
To change
- Do not forget to change the download path (line 9)
Usage
- Initialize an object
$deluge = new DELUGE("url to server", "password");
- Get the torrent already on the server
$torrents = $deluge->getTorrents();
- Launch the download of a new torrent
$deluge->addTorrent($urlTorrent);
- Do not forget to close the connexion once you finish using it
$deluge->close();
To change
- Do not forget to change the lang you want the api to be call with (line 9)
Usage
- Initialize an object (with your TMDB api key)
$tmdb = new TMDB($apiKey);
- You can get all the infos about a movie with the id TMDB of the movie
$infosMovie = $tmdb->fullInfosMovie($movie);
- You can get all the infos about a serie with the id TMDB of the series
$infosSerie = $tmdb->fullInfosSerie($series);
Usage
- Get your login mobile.free.fr and your api key and initialize an object
$free = new FREE($freeUser, $freeApiKey);
- Send SMS to yourself
$free->sendMessage("Hello world");
Usage
- initialize an object
$nyaa = new NYAA();
- Get the result of a research
$result = $nyaa->getListSearch($request);
Important
You need to be able to execute 'exec()' command in PHP and to have ffprobe installed on your server
Usage
- initialize an object
$ffprobe = new FFPROBE();
- Get a raw scan of a media file
$ffprobe->rawScanFile($pathfile);
- Get a cleaned scan of a media file
$ffprobe->scanFile($pathfile);