Skip to content

Commit

Permalink
Fix queries with whitespace not yielding results
Browse files Browse the repository at this point in the history
  • Loading branch information
abirke authored and red-coracle committed Apr 17, 2021
1 parent 57c7f90 commit 12a3079
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/main/java/com/redcoracle/episodes/tvdb/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.uwetrottmann.thetvdb.entities.SeriesResultsResponse;

import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
Expand All @@ -44,9 +43,8 @@ public Client() {
public List<Show> searchShows(String query, String language) {

try {
final String escapedQuery = URLEncoder.encode(query, "UTF-8");
final retrofit2.Response<SeriesResultsResponse> response =
tvdb.search().series(escapedQuery, null, null, null, language).execute();
tvdb.search().series(query, null, null, null, language).execute();
if (response.isSuccessful()) {
final SearchShowsParser parser = new SearchShowsParser();
return parser.parse(response, language);
Expand Down

0 comments on commit 12a3079

Please sign in to comment.