Closed mozzwald closed 9 years ago
getTorrents()
now requires an array of id's, so you can get multiple torrents if you wish. Here's the method signature:
public function getTorrents(array $ids = array())
Try put your id in an array and pass that through?
If you want to check the source for that, you can see it here.
Of course, you can pass no ids through and get all of them as usual.
Thanks for the pointer. I forked and made some changes that got it working:
https://github.com/mozzwald/TorrentPHP/commit/ef6205b4e2869919040c15513d8f748d6bad53b2
Using the following code (pulled from your example) I get errors when I add a new torrent. What is the correct format for the $id array passed to
getTorrents()
?