From f5495805269518ba7647c3491debc4b1635e8bab Mon Sep 17 00:00:00 2001 From: reusedname <155286845+reusedname@users.noreply.github.com> Date: Thu, 13 Mar 2025 12:29:37 +0500 Subject: [PATCH] Update CB thumbnails host --- common/src/main/java/ctbrec/sites/chaturbate/Chaturbate.java | 2 +- .../main/java/ctbrec/sites/chaturbate/ChaturbateModel.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/ctbrec/sites/chaturbate/Chaturbate.java b/common/src/main/java/ctbrec/sites/chaturbate/Chaturbate.java index 1d19592d..4fc06c9f 100644 --- a/common/src/main/java/ctbrec/sites/chaturbate/Chaturbate.java +++ b/common/src/main/java/ctbrec/sites/chaturbate/Chaturbate.java @@ -55,7 +55,7 @@ public class Chaturbate extends AbstractSite { ChaturbateModel m = new ChaturbateModel(this); m.setName(normalizedName); m.setUrl(getBaseUrl() + '/' + normalizedName + '/'); - m.setPreview("https://roomimg.stream.highwebmedia.com/ri/" + normalizedName + ".jpg?" + Instant.now().getEpochSecond()); + m.setPreview("https://thumb.live.mmcdn.com/riw/" + normalizedName + ".jpg?" + Instant.now().getEpochSecond()); return m; } diff --git a/common/src/main/java/ctbrec/sites/chaturbate/ChaturbateModel.java b/common/src/main/java/ctbrec/sites/chaturbate/ChaturbateModel.java index bb17b8e4..9334199d 100644 --- a/common/src/main/java/ctbrec/sites/chaturbate/ChaturbateModel.java +++ b/common/src/main/java/ctbrec/sites/chaturbate/ChaturbateModel.java @@ -78,7 +78,7 @@ public class ChaturbateModel extends AbstractModel { private boolean isOffline() { String normalizedName = getName().toLowerCase().trim(); - String previewUrl = "https://roomimg.stream.highwebmedia.com/ri/" + normalizedName + ".jpg?" + Instant.now().getEpochSecond(); + String previewUrl = "https://thumb.live.mmcdn.com/riw/" + normalizedName + ".jpg?" + Instant.now().getEpochSecond(); if (offlineImageSize == 0) { offlineImageSize = getOfflineImageSize(); // NOSONAR } @@ -88,7 +88,7 @@ public class ChaturbateModel extends AbstractModel { private int getOfflineImageSize() { String[] names = {"Sophia", "Helena", "Olivia", "Natasha", "Emmy", "Jenny", "Diana", "Teresa", "Julia", "Polly", "Amanda"}; String randomName = names[RNG.nextInt(names.length)] + RNG.nextInt(99); - String previewUrl = "https://roomimg.stream.highwebmedia.com/ri/" + randomName + ".jpg?" + Instant.now().getEpochSecond(); + String previewUrl = "https://thumb.live.mmcdn.com/riw/" + randomName + ".jpg?" + Instant.now().getEpochSecond(); int imageSize = getImageSize(previewUrl); if (imageSize == 0) { imageSize = 21971;