Skip to content

Commit

Permalink
fix broken cache and REBROKEN POVR (#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
theRealKLH authored Feb 14, 2024
1 parent 75c91cd commit 2c05195
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ui/src/views/scenes/Details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -782,12 +782,12 @@ watch:{
return u
}
try {
if (u.startsWith('http') || u.startsWith('https')) {
if (strpos(u, "%") !== false) {
return '/img/' + size + '/' + decodeURI(u)
}
return '/img/' + size + '/' + encodeURI(u)
} else {
if (u.startsWith('http')) {
if (u.search("%") == -1) {
return '/img/' + size + '/' + encodeURI(u)
} else {
return '/img/' + size + '/' + encodeURI(decodeURI(u))
}
return u
}
} catch {
Expand Down
11 changes: 9 additions & 2 deletions ui/src/views/scenes/SceneCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,15 @@ export default {
},
},
methods: {
getImageURL (u, size) {
return '/img/700x/' + u
getImageURL (u) {
if (u.startsWith('http') == false) {
return u
}
if (u.search("%") == -1) {
return '/img/700x/' + encodeURI(u)
} else {
return '/img/700x/' + encodeURI(decodeURI(u))
}
},
showDetails (scene) {
// reRead is required when the SceneCard is clicked from the ActorDetails
Expand Down

0 comments on commit 2c05195

Please sign in to comment.