mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-20 21:01:17 +01:00
Fixed Uri builder
This commit is contained in:
parent
cbca5de890
commit
c69dfff36c
@ -20,7 +20,7 @@ import android.net.Uri;
|
||||
public class MiroConnector {
|
||||
private HttpClient httpClient;
|
||||
|
||||
private static final String HOST_URL = "www.miroguide.com/api/";
|
||||
private static final String HOST_URL = "https://www.miroguide.com/api/";
|
||||
private static final String PATH_GET_CHANNELS = "get_channels";
|
||||
private static final String PATH_LIST_CATEGORIES = "list_categories";
|
||||
private static final String PATH_GET_CHANNEL = "get_channel";
|
||||
@ -34,9 +34,8 @@ public class MiroConnector {
|
||||
}
|
||||
|
||||
private Uri.Builder getBaseURIBuilder(String path) {
|
||||
Uri.Builder builder = new Uri.Builder();
|
||||
builder.scheme("https").appendPath(HOST_URL).appendPath(path)
|
||||
.appendQueryParameter("datatype", "json");
|
||||
Uri.Builder builder = Uri.parse(HOST_URL).buildUpon();
|
||||
builder.appendPath(path).appendQueryParameter("datatype", "json");
|
||||
return builder;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user