Browse Source

Fix PHP syntax error in JavaScript regex

- Fixed JavaScript regex string escaping in PHP heredoc
- Changed single quotes to double quotes to prevent PHP parse error
- PHP syntax validation now passes
mgomon 11 tháng trước cách đây
mục cha
commit
d9b4bd7d6c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/homepage/jellystat.php

+ 1 - 1
api/homepage/jellystat.php

@@ -362,7 +362,7 @@ trait JellyStatHomepageItem
             if (itemId && jellyStatUrl) {
                 // JellyStat uses /proxy/Items/Images/Primary endpoint
                 // Format: /proxy/Items/Images/Primary?id={itemId}&fillWidth=200&quality=90
-                var baseUrl = jellyStatUrl.replace(/\/+$/, ''); // Remove trailing slashes
+                var baseUrl = jellyStatUrl.replace(/\/+$/, ""); // Remove trailing slashes
                 
                 var apiUrl = baseUrl + "/proxy/Items/Images/Primary?id=" + itemId + "&fillWidth=200&quality=90";
                 console.log("Generated JellyStat proxy image URL:", apiUrl);