Update CB thumbnails host
This commit is contained in:
parent
f8613c8817
commit
f549580526
|
@ -55,7 +55,7 @@ public class Chaturbate extends AbstractSite {
|
||||||
ChaturbateModel m = new ChaturbateModel(this);
|
ChaturbateModel m = new ChaturbateModel(this);
|
||||||
m.setName(normalizedName);
|
m.setName(normalizedName);
|
||||||
m.setUrl(getBaseUrl() + '/' + 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;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ public class ChaturbateModel extends AbstractModel {
|
||||||
|
|
||||||
private boolean isOffline() {
|
private boolean isOffline() {
|
||||||
String normalizedName = getName().toLowerCase().trim();
|
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) {
|
if (offlineImageSize == 0) {
|
||||||
offlineImageSize = getOfflineImageSize(); // NOSONAR
|
offlineImageSize = getOfflineImageSize(); // NOSONAR
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ public class ChaturbateModel extends AbstractModel {
|
||||||
private int getOfflineImageSize() {
|
private int getOfflineImageSize() {
|
||||||
String[] names = {"Sophia", "Helena", "Olivia", "Natasha", "Emmy", "Jenny", "Diana", "Teresa", "Julia", "Polly", "Amanda"};
|
String[] names = {"Sophia", "Helena", "Olivia", "Natasha", "Emmy", "Jenny", "Diana", "Teresa", "Julia", "Polly", "Amanda"};
|
||||||
String randomName = names[RNG.nextInt(names.length)] + RNG.nextInt(99);
|
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);
|
int imageSize = getImageSize(previewUrl);
|
||||||
if (imageSize == 0) {
|
if (imageSize == 0) {
|
||||||
imageSize = 21971;
|
imageSize = 21971;
|
||||||
|
|
Loading…
Reference in New Issue