zzarbi / synology

PHP Implementation of Synology Download Station
MIT License
125 stars 58 forks source link

Added calls for BTSearch API #10

Closed PBXg33k closed 9 years ago

PBXg33k commented 9 years ago

Added support for BT Search to SYNO.DownloadStation. The following methods were added.

startSearchTask: Starts a new search job and returns a taskid getSearchList: Returns a searchresult, this can be an ongoing job or a completed job. An object is returned with the property 'finished' (bool) stating if the job has completer or not and the property 'list' (array) containing items as objects. getCategories: Returns the categories the DownloadStation offers cleanSearch: Stops and destroys a search job along with the results getModule: Returns the installed modules (ie: torrentsites)

Known limitations Search jobs are bound to the session and only one search job can be performed simultaniously.

iH8 commented 9 years ago

@PBXg33k, i preparing to start on this just a minute ago, seems i got my hands free now. You're the man/woman! Thanks a million.

PBXg33k commented 9 years ago

You're welcome. Least i could do since your work helped me accessing my NASes with my own scripts :)

iH8 commented 9 years ago

@PBXg33k, wasn't me ;) Thank @zzarbi :) I was developing something similar and had some issues. Was searching for solution when i found this lib and was bummed because it didn't have BTSearch functionality, then you came in. Both of you: great work and thanks again!

zzarbi commented 9 years ago

Thanks again @PBXg33k