Add BC Mobile tab, accept .xxx URL
This commit is contained in:
parent
9737b04931
commit
5777e0a57a
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue