Skip to content

Commit

Permalink
Removed CapSolver support upon written request from the service
Browse files Browse the repository at this point in the history
  • Loading branch information
openbullet committed Aug 12, 2024
1 parent 1970247 commit 97c4fc1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 24 deletions.
12 changes: 1 addition & 11 deletions OpenBullet2.Native/ViewModels/RLSettingsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,7 @@ public int CustomAntiCaptchaPort
OnPropertyChanged();
}
}

public string CapSolverApiKey
{
get => Captcha.CapSolverApiKey;
set
{
Captcha.CapSolverApiKey = value;
OnPropertyChanged();
}
}


public string CapMonsterCloudApiKey
{
get => Captcha.CapMonsterCloudApiKey;
Expand Down
4 changes: 1 addition & 3 deletions OpenBullet2.Native/Views/Pages/RLSettings.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,7 @@
<TabItem>
<StackPanel>
<StackPanel Orientation="Horizontal" Margin="0 10 0 0">
<Label>Api Key</Label>
<TextBox Text="{Binding CapSolverApiKey}"
Width="400"></TextBox>
<TextBlock Foreground="{DynamicResource ForegroundBad}">CapSolver itself explicitly asked to be removed from the software. Please choose another service.</TextBlock>
</StackPanel>
</StackPanel>
</TabItem>
Expand Down
3 changes: 2 additions & 1 deletion RuriLib/Functions/Captchas/CaptchaServiceFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public static CaptchaService GetService(CaptchaSettings settings)
CaptchaServiceType.NineKw => new NineKwService(settings.NineKWApiKey),
CaptchaServiceType.CustomAntiCaptcha => new CustomAntiCaptchaService(settings.CustomAntiCaptchaApiKey,
GetUri(settings.CustomAntiCaptchaDomain, settings.CustomAntiCaptchaPort)),
CaptchaServiceType.CapSolver => new CapSolverService(settings.CapSolverApiKey),
CaptchaServiceType.CapSolver => throw new NotSupportedException(
"CapSolver itself explicitly asked to be removed from the software. Please choose another service."),
CaptchaServiceType.CapMonsterCloud => new CapMonsterCloudService(settings.CapMonsterCloudApiKey),
CaptchaServiceType.HumanCoder => new HumanCoderService(settings.HumanCoderApiKey),
CaptchaServiceType.Nopecha => new NopechaService(settings.NopechaApiKey),
Expand Down
1 change: 0 additions & 1 deletion RuriLib/Models/Settings/CaptchaSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public class CaptchaSettings
public string CustomAntiCaptchaApiKey { get; set; } = "";
public string CustomAntiCaptchaDomain { get; set; } = "";
public int CustomAntiCaptchaPort { get; set; } = 80;
public string CapSolverApiKey { get; set; } = "";
public string CapMonsterCloudApiKey { get; set; } = "";
public string MetaBypassTechClientId { get; set; } = "";
public string MetaBypassTechClientSecret { get; set; } = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,13 +411,7 @@ <h3>Captchas</h3>
</div>
<div class="row my-3" *ngIf="settings.captchaSettings.currentService === CaptchaServiceType.CapSolver">
<div class="col-12">
<span class="mr-2">CapSolver API Key</span>
<app-input-text key="capSolverApiKey"
class="input-small" [style]="{ width: '600px' }"
(touched)="touched = true" ngDefaultControl
(validityChange)="onValidityChange($event)"
[(ngModel)]="settings.captchaSettings.capSolverApiKey"
placeholder="API_KEY" />
<span class="mr-2 color-bad">CapSolver itself explicitly asked to be removed from the software. Please choose another service.</span>
</div>
</div>
<div class="row my-3" *ngIf="settings.captchaSettings.currentService === CaptchaServiceType.CapMonsterCloud">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export interface CaptchaRLSettings {
customAntiCaptchaApiKey: string;
customAntiCaptchaDomain: string;
customAntiCaptchaPort: number;
capSolverApiKey: string;
capMonsterCloudApiKey: string;
metaBypassTechClientId: string;
metaBypassTechClientSecret: string;
Expand Down

0 comments on commit 97c4fc1

Please sign in to comment.