Commit Graph

18 Commits

Author SHA1 Message Date
0xb00bface ec822ec356 Fix NPE in ExternalBrowser 2021-09-09 18:51:35 +02:00
0xb00bface f98e01d08c Change login process of Amateur.tv 2021-09-09 18:37:29 +02:00
0xb00bface 3f75e03766 Fix "cast" exception. Handle result from external browser as object. 2021-09-09 16:57:14 +02:00
0xb00bface 8be632a708 Fix Cam4 login 2021-09-08 20:08:46 +02:00
0xb00bface ea062582d4 Code cleanup 2021-05-14 19:52:46 +02:00
0xb00bface 967b5dec42 Use global thread pool instead of creating new threads 2021-01-10 22:14:20 +01:00
0xb00bface 281d70d29b Store minimal browser config in ctbrec's config dir 2020-12-06 17:59:56 +01:00
0xb00bface 808f96c04f Rename StreamRedirectThread to StreamRedirector
... since it isn't a thread, but a Runnable
2020-10-31 15:10:44 +01:00
0xb00bface 2dbc6015d2 Make sure to actually start the stream redirect threads 2020-10-31 15:09:34 +01:00
0xb00bface dfb1083c45 Fix Bongacams login in external browser 2020-10-25 20:33:56 +01:00
0xboobface 5c0e1ae044 Fix sonar lint issues 2020-02-22 11:15:51 +01:00
0xboobface 9647f1160f Fix: Errors thrown by external browser
This hopefully fixes the errors, which popped up in the external browser, because
it tried to write to a closed socket.
2019-04-05 14:50:45 +02:00
0xboobface 16fdee2a2c Merge branch 'dev' into fc2
# Conflicts:
#	client/src/main/java/ctbrec/ui/ExternalBrowser.java
2019-01-23 17:56:20 +01:00
0xboobface 7b2f30474a Make sure the reader thread is ready before sending any commands 2019-01-21 15:34:18 +01:00
0xboobface 6262d50f74 Log browser output 2019-01-20 17:58:10 +01:00
0xboobface e2d3ef264e Add proxy support for the external browser 2019-01-19 15:31:13 +01:00
0xboobface 9ceec96195 Make sure, the external browser lock gets released 2019-01-12 17:25:13 +01:00
0xboobface a6709bd6db Introduce external browser for logins
Since the JavaFX integrated browser does not work reliably for recaptcha and in general does not behave like standard browsers, I now use an external browser for the logins. The dependency to javafx-web has been removed.

The external browser is based on electron, which uses chromium as internal browser. The implementation can be found at https://github.com/0xboobface/ctbrec-minimal-browser

The browser is a minimal browser, which only shows the web page content without any other controls. It is launched by ctbrec in a new process and remote controlled over a socket connection. I first tried to control it via
stdin/stdout, but it turns out, that stdin is not supported by electron on windows.
2019-01-08 14:26:22 +01:00