'Update a library section on PlexPy.
Required parameters:
section_id (str):           The id of the Plex library section
Optional parameters:
custom_thumb (str):         The URL for the custom library thumbnail
do_notify (int):            0 or 1
do_notify_created (int):    0 or 1
keep_history (int):         0 or 1
Returns:
None'

@cherrypy.expose
@requireAuth(member_of('admin'))
@addtoapi()
def edit_library(self, section_id=None, **kwargs):

    custom_thumb = kwargs.get('custom_thumb', '')
    do_notify = kwargs.get('do_notify', 0)
    do_notify_created = kwargs.get('do_notify_created', 0)
    keep_history = kwargs.get('keep_history', 0)
    if section_id:
        try:
            library_data = libraries.Libraries()
            library_data.set_config(section_id=section_id, custom_thumb=custom_thumb, do_notify=do_notify, do_notify_created=do_notify_created, keep_history=keep_history)
            return 'Successfully    updated    library.'
        except:
            return 'Failed    to    update    library.'
