use get instead of dict to avoid errors
if not is dir
Add route for deleting torrents