Clean up code

This commit is contained in:
0xboobface 2018-10-29 23:25:50 +01:00
parent c8e3db4021
commit 7f3bedd3a1
2 changed files with 3 additions and 8 deletions

View File

@ -26,7 +26,6 @@ public class Cam4HttpClient extends HttpClient {
@Override
public boolean login() throws IOException {
BlockingQueue<Boolean> queue = new LinkedBlockingQueue<>();
LOG.debug("Launching dialog");
Runnable showDialog = () -> {
// login with javafx WebView
@ -46,7 +45,6 @@ public class Cam4HttpClient extends HttpClient {
showDialog.run();
} else {
Platform.runLater(showDialog);
LOG.debug("waiting for queue");
try {
queue.take();
} catch (InterruptedException e) {
@ -55,7 +53,6 @@ public class Cam4HttpClient extends HttpClient {
}
}
loggedIn = checkLoginSuccess();
return loggedIn;
}

View File

@ -25,11 +25,9 @@ public class Cam4TabProvider extends TabProvider {
tabs.add(createTab("Female", cam4.getBaseUrl() + "/directoryResults?online=true&gender=female&orderBy=MOST_VIEWERS"));
tabs.add(createTab("HD", cam4.getBaseUrl() + "/directoryResults?online=true&hd=true&orderBy=VIDEO_QUALITY"));
if(cam4.credentialsAvailable()) {
Cam4FollowedTab followed = new Cam4FollowedTab(cam4);
followed.setRecorder(recorder);
tabs.add(followed);
}
Cam4FollowedTab followed = new Cam4FollowedTab(cam4);
followed.setRecorder(recorder);
tabs.add(followed);
return tabs;
}