crustymonkey / py-sonic

A python library to wrap the Subsonic REST API
http://stuffivelearned.org/doku.php?id=programming:python:py-sonic
GNU General Public License v3.0
57 stars 26 forks source link

Add 2 unofficial API calls: Clean up database, and refresh. #4

Closed beallio closed 10 years ago

beallio commented 10 years ago

Add 2 unofficial API calls:

cleanupDatabase

Same as selecting 'Settings' > 'Clean-up Database' with Subsonic web GUI

Subsonic stores information about all media files ever encountered. By cleaning up the database, information about files that are no longer in your media collection is permanently removed.

returns True if initiated successfully, False otherwise

scanMediaFolders

Same as selecting 'Settings' > 'Scan media folders now' with Subsonic web GUI

Refreshes Subsonic media database.

returns True if initiated successfully, False otherwise

crustymonkey commented 10 years ago

I'm ok with merging this if you remove the exception handling.