mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(xtream): add error handling for image loading in category and VOD details views
This commit is contained in:
1 parent
d18a11fb8b
commit
34864b76dd
2 files changed
+10
-1
No files matched your search
@@ -18,6 +18,10 @@
|
||||
priority
|
||||
placeholder
|
||||
placeholder="data:image/png;base64,iVBORw0K..."
|
||||
(error)="
|
||||
$event.target.src =
|
||||
'./assets/images/default-poster.png'
|
||||
"
|
||||
/>
|
||||
}
|
||||
@if (!item.stream_icon && !item.cover && !item.logo) {
|
||||
|
||||
@@ -10,7 +10,12 @@
|
||||
>
|
||||
<div class="image">
|
||||
@if (item.info?.movie_image) {
|
||||
<img [src]="item.info?.movie_image" />
|
||||
<img
|
||||
[src]="item.info?.movie_image"
|
||||
(error)="
|
||||
$event.target.src = './assets/images/default-poster.png'
|
||||
"
|
||||
/>
|
||||
} @else {
|
||||
<div class="placeholder-cover"></div>
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user