'Get a list of library sections and ids on the PMS.
Required parameters:
None
Optional parameters:
None
Returns:
json:
[{"section_id": 1, "section_name": "Movies"},
{"section_id": 7, "section_name": "Music"},
{"section_id": 2, "section_name": "TV Shows"},'

@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth(member_of('admin'))
@addtoapi('get_library_names')
def get_library_sections(self, **kwargs):

    library_data = libraries.Libraries()
    result = library_data.get_sections()
    if result:
        return result
    else:
        logger.warn(u'Unable    to    retrieve    data    for    get_library_sections.')
