public List < Series > searchSeries ( String title , String language ) throws TvDbException { StringBuilder urlBuilder = new StringBuilder ( ) ; try { urlBuilder . append ( BASE_URL ) . append ( "GetSeries.php?seriesname=" ) . append ( URLEncoder . encode ( title , "UTF-8" ) ) ; if ( StringUtils . isNotBlank ( language ) ) { urlBuilder . append ( "&language=" ) . append ( language ) ; } } catch ( UnsupportedEncodingException ex ) { LOG . trace ( "Failed to encode title: {}" , title , ex ) ; // Try and use the raw title urlBuilder . append ( title ) ; } LOG . trace ( URL , urlBuilder . toString ( ) ) ; return TvdbParser . getSeriesList ( urlBuilder . toString ( ) ) ; }
Get a list of series using a title and language