'List existing shows'

@etag
@api.response(200, u'Series    list    retrieved    successfully', series_list_schema)
@api.response(NotFoundError)
@api.doc(parser=series_list_parser, description=u"Get    a        list    of    Flexget's    shows    in    DB")
def get(self, session=None):

    args = series_list_parser.parse_args()
    configured = args[u'in_config']
    premieres = args[u'premieres']
    status = args[u'status']
    days = args[u'days']
    page = args[u'page']
    per_page = args[u'per_page']
    sort_by = args[u'sort_by']
    sort_order = args[u'order']
    if (per_page > 100):
        per_page = 100
    descending = (sort_order == u'desc')
    lookup = args.get(u'lookup')
    begin = args.get(u'begin')
    latest = args.get(u'latest')
    start = (per_page * (page - 1))
    stop = (start + per_page)
    kwargs = {u'configured': configured, u'premieres': premieres, u'status': status, u'days': days, u'start': start, u'stop': stop, u'sort_by': sort_by, u'descending': descending, u'session': session}
    total_items = series.get_series_summary(count=True, **kwargs)
    if (not total_items):
        return jsonify([])
    series_list = []
    for s in series.get_series_summary(**kwargs):
        series_object = series_details(s, begin, latest)
        series_list.append(series_object)
    total_pages = int(ceil((total_items / float(per_page))))
    if ((total_pages < page) and (total_pages != 0)):
        raise NotFoundError((u'page    %s    does    not    exist' % page))
    actual_size = min(per_page, len(series_list))
    if lookup:
        api_client = APIClient()
        for endpoint in lookup:
            base_url = (u'/%s/series/' % endpoint)
            for show in series_list:
                pos = series_list.index(show)
                series_list[pos].setdefault(u'lookup', {})
                url = ((base_url + show[u'name']) + u'/')
                result = api_client.get_endpoint(url)
                series_list[pos][u'lookup'].update({endpoint: result})
    pagination = pagination_headers(total_pages, total_items, actual_size, request)
    rsp = jsonify(series_list)
    rsp.headers.extend(pagination)
    return rsp
