Explorar el Código

Fix syntax error: missing closing brace in JellyStat metadata function

- Added missing closing brace for else block in fallback JellyStat proxy URLs section
- Fixes PHP parse error causing 500 Internal Server Error
mgomon hace 11 meses
padre
commit
733e713f9b
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      api/homepage/jellystat.php

+ 4 - 3
api/homepage/jellystat.php

@@ -526,9 +526,10 @@ trait JellyStatHomepageItem
                         // Fallback to Backdrop image
                         $backdropTag = $details['BackdropImageTags'][0];
                         $imageUrl = $imageBaseUrl . '/proxy/Items/' . rawurlencode($itemId) . '/Images/Backdrop?tag=' . urlencode($backdropTag) . '&fillWidth=400&quality=90';
-                } else {
-                    // Final fallback: try generic Primary image proxy
-                    $imageUrl = $this->getPosterUrl(null, $itemId, $serverId) ?: $imageUrl;
+                    } else {
+                        // Final fallback: try generic Primary image proxy
+                        $imageUrl = $this->getPosterUrl(null, $itemId, $serverId) ?: $imageUrl;
+                    }
                 }
                 
                 $this->info("JellyStat metadata: Processed item - Title: {$title}, Type: {$type}, Year: {$year}, Rating: {$rating}");