|
|
@@ -361,8 +361,16 @@ trait JellyStatHomepageItem
|
|
|
// If we have itemId, try to generate JellyStat image proxy URL
|
|
|
if (itemId && jellyStatUrl) {
|
|
|
// JellyStat uses /proxy/Items/Images/Primary endpoint
|
|
|
- // Format: /proxy/Items/Images/Primary?id={itemId}&fillWidth=400&quality=90
|
|
|
- var apiUrl = jellyStatUrl + "/proxy/Items/Images/Primary?id=" + itemId + "&fillWidth=400&quality=90";
|
|
|
+ // Format: /proxy/Items/Images/Primary?id={itemId}&fillWidth=200&quality=90
|
|
|
+ // Use actual JellyStat domain for image proxy
|
|
|
+ var baseUrl = jellyStatUrl.replace(/\/+$/, ''); // Remove trailing slashes
|
|
|
+
|
|
|
+ // Check if we need to use the jellystat subdomain instead
|
|
|
+ if (baseUrl.indexOf('media.glassnetworks.net') !== -1) {
|
|
|
+ baseUrl = baseUrl.replace('media.glassnetworks.net', 'jellystat.glassnetworks.net');
|
|
|
+ }
|
|
|
+
|
|
|
+ var apiUrl = baseUrl + "/proxy/Items/Images/Primary?id=" + itemId + "&fillWidth=200&quality=90";
|
|
|
console.log("Generated JellyStat proxy image URL:", apiUrl);
|
|
|
return apiUrl;
|
|
|
}
|