This repository has been archived by the owner on May 17, 2022. It is now read-only.
Fix wrong interface implementations
This release fixes 2 errors:
- The freeSpace method did not return data. Now it returns an array containing the torrents path and its current size.
- The torrentAdd method now throws a DuplicateTorrentException when the API returns a "duplicate torrent" error. This exception stores the ID, the name and the hash of the torrent. These data can be retrieved with the methods DuplicateTorrentException::getTorrentId(), DuplicateTorrentException::getTorrentName() and DuplicateTorrentException::getTorrentHashString()