mirror of
https://github.com/BreizhHardware/Jellystat.git
synced 2026-01-18 16:27:20 +01:00
proxy enpoint case sensitivity fix
proxied endpoints are case sensitive in vite, this fix is to update the endpoint names to match the proxied endpoints
This commit is contained in:
@@ -39,7 +39,7 @@ function LastWatchedCard(props) {
|
||||
<img
|
||||
src={
|
||||
`${
|
||||
"/Proxy/Items/Images/Primary?id=" +
|
||||
"/proxy/Items/Images/Primary?id=" +
|
||||
props.data.Id +
|
||||
"&fillHeight=320&fillWidth=213&quality=50"}`
|
||||
}
|
||||
|
||||
@@ -121,7 +121,7 @@ if(data && data.notfound)
|
||||
}
|
||||
|
||||
const cardStyle = {
|
||||
backgroundImage: `url(/Proxy/Items/Images/Backdrop?id=${(["Episode","Season"].includes(data.Type)? data.SeriesId : data.Id)}&fillWidth=800&quality=90)`,
|
||||
backgroundImage: `url(/proxy/Items/Images/Backdrop?id=${(["Episode","Season"].includes(data.Type)? data.SeriesId : data.Id)}&fillWidth=800&quality=90)`,
|
||||
height:'100%',
|
||||
backgroundSize: 'cover',
|
||||
};
|
||||
@@ -142,7 +142,7 @@ const cardBgStyle = {
|
||||
<img
|
||||
className="item-image"
|
||||
src={
|
||||
"/Proxy/Items/Images/Primary?id=" +
|
||||
"/proxy/Items/Images/Primary?id=" +
|
||||
(["Episode","Season"].includes(data.Type)? data.SeriesId : data.Id) +
|
||||
"&fillWidth=200&quality=90"
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ function MoreItemCards(props) {
|
||||
<img
|
||||
src={
|
||||
`${
|
||||
"/Proxy/Items/Images/Primary?id=" +
|
||||
"/proxy/Items/Images/Primary?id=" +
|
||||
Id +
|
||||
"&fillHeight=320&fillWidth=213&quality=50"}`
|
||||
}
|
||||
@@ -34,7 +34,7 @@ function MoreItemCards(props) {
|
||||
<img
|
||||
src={
|
||||
`${
|
||||
"/Proxy/Items/Images/Primary?id=" +
|
||||
"/proxy/Items/Images/Primary?id=" +
|
||||
(props.data.Type==="Episode" ? props.data.EpisodeId : props.data.Id) +
|
||||
"&fillHeight=320&fillWidth=213&quality=50"}`
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ function RecentlyAddedCard(props) {
|
||||
{loaded ? null : <Blurhash hash={props.data.ImageBlurHashes.Primary[props.data.ImageTags.Primary]} width={'100%'} height={'100%'} className="rounded-3 overflow-hidden"/>}
|
||||
<img
|
||||
src={
|
||||
`${"/Proxy/Items/Images/Primary?id=" +
|
||||
`${"/proxy/Items/Images/Primary?id=" +
|
||||
(props.data.Type==="Episode"? props.data.SeriesId :props.data.Id) +
|
||||
"&fillHeight=320&fillWidth=213&quality=50"}`
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ function convertBitrate(bitrate) {
|
||||
|
||||
function SessionCard(props) {
|
||||
const cardStyle = {
|
||||
backgroundImage: `url(Proxy/Items/Images/Backdrop?id=${(props.data.session.NowPlayingItem.SeriesId ? props.data.session.NowPlayingItem.SeriesId : props.data.session.NowPlayingItem.Id)}&fillHeight=320&fillWidth=213&quality=80), linear-gradient(to right, #00A4DC, #AA5CC3)`,
|
||||
backgroundImage: `url(proxy/Items/Images/Backdrop?id=${(props.data.session.NowPlayingItem.SeriesId ? props.data.session.NowPlayingItem.SeriesId : props.data.session.NowPlayingItem.Id)}&fillHeight=320&fillWidth=213&quality=80), linear-gradient(to right, #00A4DC, #AA5CC3)`,
|
||||
height:'100%',
|
||||
backgroundSize: 'cover',
|
||||
};
|
||||
@@ -127,7 +127,7 @@ function SessionCard(props) {
|
||||
<Card.Img
|
||||
variant="top"
|
||||
className="stat-card-image rounded-0 rounded-start"
|
||||
src={"/Proxy/Items/Images/Primary?id=" + (props.data.session.NowPlayingItem.SeriesId ? props.data.session.NowPlayingItem.SeriesId : props.data.session.NowPlayingItem.Id) + "&fillHeight=320&fillWidth=213&quality=50"}
|
||||
src={"/proxy/Items/Images/Primary?id=" + (props.data.session.NowPlayingItem.SeriesId ? props.data.session.NowPlayingItem.SeriesId : props.data.session.NowPlayingItem.Id) + "&fillHeight=320&fillWidth=213&quality=50"}
|
||||
/>
|
||||
|
||||
|
||||
@@ -227,7 +227,7 @@ function SessionCard(props) {
|
||||
<img
|
||||
className="session-card-user-image"
|
||||
src={
|
||||
"/Proxy/Users/Images/Primary?id=" +
|
||||
"/proxy/Users/Images/Primary?id=" +
|
||||
props.data.session.UserId +
|
||||
"&quality=50"
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ function ItemStatComponent(props) {
|
||||
)}
|
||||
<Card.Img
|
||||
className="stat-card-image"
|
||||
src={"Proxy/Items/Images/Primary?id=" + props.data[0].Id + "&fillWidth=400&quality=90"}
|
||||
src={"proxy/Items/Images/Primary?id=" + props.data[0].Id + "&fillWidth=400&quality=90"}
|
||||
style={{ display: loaded ? 'block' : 'none' }}
|
||||
onLoad={handleImageLoad}
|
||||
onError={() => setLoaded(false)}
|
||||
|
||||
@@ -71,7 +71,7 @@ function MostActiveUsers(props) {
|
||||
|
||||
const UserImage = () => {
|
||||
return (
|
||||
<img src={`Proxy/Users/Images/Primary?id=${data[0].UserId}&fillWidth=100&quality=50`}
|
||||
<img src={`proxy/Users/Images/Primary?id=${data[0].UserId}&fillWidth=100&quality=50`}
|
||||
width="100%"
|
||||
style={{borderRadius:'50%'}}
|
||||
alt=""
|
||||
|
||||
@@ -80,7 +80,7 @@ function UserInfo() {
|
||||
<img
|
||||
className="user-image"
|
||||
src={
|
||||
"/Proxy/Users/Images/Primary?id=" +
|
||||
"/proxy/Users/Images/Primary?id=" +
|
||||
UserId+
|
||||
"&quality=100"
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ function Row(row) {
|
||||
<img
|
||||
className="card-user-image"
|
||||
src={
|
||||
"Proxy/Users/Images/Primary?id=" +
|
||||
"proxy/Users/Images/Primary?id=" +
|
||||
data.UserId +
|
||||
"&quality=10"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user