public Series getSeries ( String id , String language ) throws TvDbException { StringBuilder urlBuilder = new StringBuilder ( ) ; urlBuilder . append ( BASE_URL ) . append ( apiKey ) . append ( SERIES_URL ) . append ( id ) . append ( "/" ) ; if ( StringUtils . isNotBlank ( language ) ) { urlBuilder . append ( language ) . append ( XML_EXTENSION ) ; } LOG . trace ( URL , urlBuilder . toString ( ) ) ; List < Series > seriesList = TvdbParser . getSeriesList ( urlBuilder . toString ( ) ) ; if ( seriesList . isEmpty ( ) ) { return null ; } else { return seriesList . get ( 0 ) ; } }
Get the series information