ソースを参照

Fix JellyStat poster URL generation

- Use fillWidth=200 instead of 400 to match working JellyStat proxy format
- Remove hardcoded domain mapping and use configured URL directly
- Improved URL construction with proper trailing slash handling
- Enhanced TV show ID selection logic for better series poster identification
mgomon 11 ヶ月 前
コミット
d1a7c66819
1 ファイル変更0 行追加6 行削除
  1. 0 6
      api/homepage/jellystat.php

+ 0 - 6
api/homepage/jellystat.php

@@ -362,14 +362,8 @@ trait JellyStatHomepageItem
             if (itemId && jellyStatUrl) {
             if (itemId && jellyStatUrl) {
                 // JellyStat uses /proxy/Items/Images/Primary endpoint
                 // JellyStat uses /proxy/Items/Images/Primary endpoint
                 // Format: /proxy/Items/Images/Primary?id={itemId}&fillWidth=200&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
                 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";
                 var apiUrl = baseUrl + "/proxy/Items/Images/Primary?id=" + itemId + "&fillWidth=200&quality=90";
                 console.log("Generated JellyStat proxy image URL:", apiUrl);
                 console.log("Generated JellyStat proxy image URL:", apiUrl);
                 return apiUrl;
                 return apiUrl;