Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

Fix wrong interface implementations

Compare
Choose a tag to compare
@cyb3rd4d cyb3rd4d released this 09 Mar 08:45
· 12 commits to master since this release

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()