Normalize urlHandle in isOnline for MVLive
This commit is contained in:
parent
ac2c8ded4d
commit
36fa8cd6b7
|
@ -43,7 +43,8 @@ public class MVLiveModel extends AbstractModel {
|
|||
@Override
|
||||
public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException {
|
||||
if (ignoreCache) {
|
||||
String url = "https://creator-api.vidchat.manyvids.com/creator?urlHandle=" + URLEncoder.encode(getName(), UTF_8);
|
||||
String urlHandle = getDisplayName().toLowerCase().replace(" ", "-");
|
||||
String url = "https://creator-api.vidchat.manyvids.com/creator?urlHandle=" + URLEncoder.encode(urlHandle, UTF_8);
|
||||
Request req = new Request.Builder()
|
||||
.url(url)
|
||||
.header(USER_AGENT, Config.getInstance().getSettings().httpUserAgent)
|
||||
|
|
Loading…
Reference in New Issue