diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2024-03-31 09:15:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 09:15:53 +0200 |
commit | 4e47691e70e85736c7eeb30ce02c73176e565a86 (patch) | |
tree | 5e419cbcbd7095057fb07d34d753b27502901140 /net/sync/gpoddernet | |
parent | 86ff7f540b7a3b2168d5aa85027865c6d7af450f (diff) | |
download | AntennaPod-4e47691e70e85736c7eeb30ce02c73176e565a86.zip |
Remove gpodder search (#7047)
The search results are usually broken anyway
or the server just returns an error 500
Diffstat (limited to 'net/sync/gpoddernet')
-rw-r--r-- | net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java b/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java index cfa915ffa..c65e654aa 100644 --- a/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java +++ b/net/sync/gpoddernet/src/main/java/de/danoeh/antennapod/net/sync/gpoddernet/GpodnetService.java @@ -79,36 +79,6 @@ public class GpodnetService implements ISyncService { } /** - * Searches the podcast directory for a given string. - * - * @param query The search query - * @param scaledLogoSize The size of the logos that are returned by the search query. - * Must be in range 1..256. If the value is out of range, the - * default value defined by the gpodder.net API will be used. - */ - public List<GpodnetPodcast> searchPodcasts(String query, int scaledLogoSize) throws GpodnetServiceException { - String parameters = (scaledLogoSize > 0 && scaledLogoSize <= 256) ? String - .format(Locale.US, "q=%s&scale_logo=%d", query, scaledLogoSize) : String - .format("q=%s", query); - try { - URL url = new URI(baseScheme, null, baseHost, basePort, "/search.json", - parameters, null).toURL(); - Request.Builder request = new Request.Builder().url(url); - String response = executeRequest(request); - - JSONArray jsonArray = new JSONArray(response); - return readPodcastListFromJsonArray(jsonArray); - - } catch (JSONException | MalformedURLException e) { - e.printStackTrace(); - throw new GpodnetServiceException(e); - } catch (URISyntaxException e) { - e.printStackTrace(); - throw new IllegalStateException(e); - } - } - - /** * Returns all devices of a given user. * <p/> * This method requires authentication. |