Set Bongacams page size to 72

This commit is contained in:
0xb00bface 2023-12-30 21:33:19 +01:00
parent aa44917935
commit d6ecb0a96a
3 changed files with 14 additions and 9 deletions

View File

@ -3,9 +3,14 @@
* Added menu entry to force recording of models without changing the prio
* Added blacklist and whitelist settings to automatically filter out models
* Added setting to delete orphaned recording metadata (switched off by default)
* Doubled Bongacams page size
* Fixed thumbnail caching
* Added setting to restrict recording by bit rate
* Added setting to use the shortest side to restrict the resolution
* Made sure, that @winkru's fix to faster check, if a Chaturbate model is
online is merged correctly into my codebase. This should reduce 429 errors
and speed up the online check quite a bit.
* Changes by @WinkRU
* Added setting to restrict recording by bit rate
* Added setting to use the shortest side to restrict the resolution
5.2.3
========================

View File

@ -23,32 +23,32 @@ public class BongaCamsTabProvider extends AbstractTabProvider {
List<Tab> tabs = new ArrayList<>();
// female
String url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=female&online_only=true&is_mobile=true&offset=";
String url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=female&online_only=true&is_mobile=true&limit=72&offset=";
var updateService = new BongaCamsUpdateService((BongaCams) site, url);
tabs.add(createTab("Female", updateService));
// male
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=male&online_only=true&is_mobile=true&offset=";
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=male&online_only=true&is_mobile=true&limit=72&offset=";
updateService = new BongaCamsUpdateService((BongaCams) site, url);
tabs.add(createTab("Male", updateService));
// couples
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=couples&online_only=true&is_mobile=true&offset=";
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=couples&online_only=true&is_mobile=true&limit=72&offset=";
updateService = new BongaCamsUpdateService((BongaCams) site, url);
tabs.add(createTab("Couples", updateService));
// trans
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=transsexual&online_only=true&is_mobile=true&offset=";
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=transsexual&online_only=true&is_mobile=true&limit=72&offset=";
updateService = new BongaCamsUpdateService((BongaCams) site, url);
tabs.add(createTab("Transsexual", updateService));
// new
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=new&online_only=true&is_mobile=true&offset=";
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=new&online_only=true&is_mobile=true&limit=72&offset=";
updateService = new BongaCamsUpdateService((BongaCams) site, url);
tabs.add(createTab("New", updateService));
// friends
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=friends&online_only=true&offset=";
url = site.getBaseUrl() + "/tools/listing_v3.php?livetab=friends&online_only=true&limit=72&offset=";
updateService = new BongaCamsUpdateService((BongaCams) site, url, true);
friendsTab = new BongaCamsFriendsTab("Friends", updateService, site);
friendsTab.setRecorder(recorder);

View File

@ -54,7 +54,7 @@ public class BongaCamsUpdateService extends PaginatedScheduledService {
}
private List<Model> loadModelList() throws IOException {
String pageUrl = url + ((page - 1) * 36);
String pageUrl = url + ((page - 1) * 72);
LOG.debug("Fetching page {}", pageUrl);
var request = new Request.Builder()
.url(pageUrl)