final db8
This commit is contained in:
parent
a4984b02f1
commit
1c1066d399
|
@ -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 ? "®ions=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("®ions=NA") || endpoint.contains("&hidden=true") || endpoint.contains("&gaming=true")) {
|
||||
return apiUrl + endpoint; // Do NOT modify these URLs
|
||||
}
|
||||
|
||||
// Apply ®ions=NA dynamically to other endpoints based on the checkbox setting
|
||||
String url = apiUrl + endpoint + (filterNA ? "®ions=NA" : "");
|
||||
System.out.println("Building URL: " + url); // Debugging line
|
||||
return url;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue