final db8

This commit is contained in:
J62 2025-03-15 23:52:44 -07:00
parent a4984b02f1
commit 1c1066d399
1 changed files with 13 additions and 6 deletions

View File

@ -79,12 +79,19 @@ public class ChaturbateTabProvider extends AbstractTabProvider {
return createTab(title, updateService);
}
private String buildUrl(String endpoint) {
boolean filterNA = Config.getInstance().getSettings().filterNAcamsOnly; // Always check latest setting
String url = apiUrl + endpoint + (filterNA ? "&regions=NA" : "");
System.out.println("Building URL: " + url); // Debugging line
return url;
}
private String buildUrl(String endpoint) {
boolean filterNA = Config.getInstance().getSettings().filterNAcamsOnly; // Always check latest setting
// Ensure that certain tabs remain unchanged
if (endpoint.contains("&regions=NA") || endpoint.contains("&hidden=true") || endpoint.contains("&gaming=true")) {
return apiUrl + endpoint; // Do NOT modify these URLs
}
// Apply &regions=NA dynamically to other endpoints based on the checkbox setting
String url = apiUrl + endpoint + (filterNA ? "&regions=NA" : "");
System.out.println("Building URL: " + url); // Debugging line
return url;
}