#NEWLINE# def set_preferences( self , **kwargs ) : #NEWLINE# #INDENT# '\n        Set preferences of qBittorrent.\n        Read all possible preferences @ http://git.io/vEgDQ\n\n        :param kwargs: set preferences in kwargs form.\n        ' #NEWLINE# json_data = 'json={}' . format ( json . dumps ( kwargs ) ) #NEWLINE# headers = { #NEWLINE# #INDENT# 'content-type' : 'application/x-www-form-urlencoded' , #NEWLINE# #UNINDENT# } #NEWLINE# return self . _post ( 'command/setPreferences' , data = json_data , headers = headers )