'TheTVDB series lookup'

@etag
@api.response(200, u'Successfully    found    show', tvdb_series_schema)
@api.response(NotFoundError)
def get(self, title, session=None):

    args = series_parser.parse_args()
    language = args[u'language']
    try:
        tvdb_id = int(title)
    except ValueError:
        tvdb_id = None
    kwargs = {u'session': session, u'language': language}
    if tvdb_id:
        kwargs[u'tvdb_id'] = tvdb_id
    else:
        kwargs[u'name'] = title
    try:
        series = lookup_series(**kwargs)
    except LookupError as e:
        raise NotFoundError(e.args[0])
    result = series.to_dict()
    if args.get(u'include_actors'):
        result[u'actors'] = series.actors
    return jsonify(result)
