![]() To get the number of peers connected $connectedPeers = $torrent -> getPeersConnected() To get the start date/time of the torrent in UNIX Timestamp format $startTime = $torrent -> getStartDate() You can also get the Trackers statistics and info that the torrent currently has // These are instances of the Transmission\Model\trackerStats class $trackerStats = $torrent-> getTrackerStats() You can also get the Trackers that the torrent currently uses // These are instances of the Transmission\Model\Tracker class $trackers = $torrent-> getTrackers() Or if you want to delete all local data too $transmission-> remove( $torrent, true) Removing a torrent from the download queue $torrent = $transmission-> get( 1) ![]() Adding a torrent to the download queue $torrent = $transmission-> add( /* path to torrent */) (you can also get a torrent by the hash of the torrent) $torrent = $transmission-> get( /* torrent hash */) Getting a specific torrent from the download queue $torrent = $transmission-> get( 1)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |