Add BC Mobile tab, accept .xxx URL

This commit is contained in:
Jafea7 2025-04-07 13:06:59 +10:00
parent 9737b04931
commit 5777e0a57a
2 changed files with 6 additions and 1 deletions

View File

@ -42,6 +42,11 @@ public class BongaCamsTabProvider extends AbstractTabProvider {
updateService = new BongaCamsUpdateService((BongaCams) site, url);
tabs.add(createTab("Transsexual", updateService));
// mobile
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=all&online_only=true&tag=mobile-live&limit=72&offset=";
updateService = new BongaCamsUpdateService((BongaCams) site, url);
tabs.add(createTab("Mobile", updateService));
// new
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=new&online_only=true&is_mobile=true&limit=72&offset=";
updateService = new BongaCamsUpdateService((BongaCams) site, url);

View File

@ -198,7 +198,7 @@ public class BongaCams extends AbstractSite {
@Override
public Model createModelFromUrl(String url) {
Matcher m = Pattern.compile("https?://.*?bongacams.com(?:/profile)?/([^/]*?)/?").matcher(url);
Matcher m = Pattern.compile("https?://.*?bongacams.([com|xxx])(?:/profile)?/([^/]*?)/?").matcher(url);
if (m.matches()) {
String modelName = m.group(1);
return createModel(modelName);