'Get the data on the PlexPy libraries table.
Required parameters:
None
Optional parameters:
order_column (str):             "library_thumb", "section_name", "section_type", "count", "parent_count",
"child_count", "last_accessed", "last_played", "plays", "duration"
order_dir (str):                "desc" or "asc"
start (int):                    Row to start from, 0
length (int):                   Number of items to return, 25
search (str):                   A string to search for, "Movies"
Returns:
json:
{"draw": 1,
"recordsTotal": 10,
"recordsFiltered": 10,
"data":
[{"child_count": 3745,
"content_rating": "TV-MA",
"count": 62,
"do_notify": "Checked",
"do_notify_created": "Checked",
"duration": 1578037,
"id": 1128,
"keep_history": "Checked",
"labels": [],
"last_accessed": 1462693216,
"last_played": "Game of Thrones - The Red Woman",
"library_art": "/:/resources/show-fanart.jpg",
"library_thumb": "",
"media_index": 1,
"media_type": "episode",
"parent_count": 240,
"parent_media_index": 6,
"parent_title": "",
"plays": 772,
"rating_key": 153037,
"section_id": 2,
"section_name": "TV Shows",
"section_type": "Show",
"thumb": "/library/metadata/153036/thumb/1462175062",
"year": 2016'

@cherrypy.expose
@cherrypy.tools.json_out()
@requireAuth()
@addtoapi('get_libraries_table')
def get_library_list(self, **kwargs):

    if (not kwargs.get('json_data')):
        dt_columns = [('library_thumb', False, False), ('section_name', True, True), ('section_type', True, True), ('count', True, True), ('parent_count', True, True), ('child_count', True, True), ('last_accessed', True, False), ('last_played', True, True), ('plays', True, False), ('duration', True, False)]
        kwargs['json_data'] = build_datatables_json(kwargs, dt_columns, 'section_name')
    library_data = libraries.Libraries()
    library_list = library_data.get_datatables_list(kwargs=kwargs)
    return library_list
