mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
fix poster fetching
This commit is contained in:
parent
0e93552e69
commit
f47da0ae6e
@ -20,6 +20,14 @@ const navigateToDetails = () => {
|
||||
|
||||
onMounted(async () => {
|
||||
imageUrl.value = "https://eapp.org/wp-content/uploads/2018/05/poster_placeholder.jpg";
|
||||
if (props.item.images && props.item.images.length > 0) {
|
||||
for (const image of props.item.images) {
|
||||
if (image.type === "poster") {
|
||||
imageUrl.value = "https://cdn.streamingcommunity.marketing/images/" + image.filename;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (props.mediaType == "film") {
|
||||
try {
|
||||
const response = await axios.get(movieApiUrl + props.item.name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user