addon provided metadata for appletv style carousel

This commit is contained in:
chrisk325 2025-12-30 15:49:21 +05:30 committed by GitHub
parent 103bcdd4cc
commit fbb44b14dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -672,13 +672,14 @@ const AppleTVHero: React.FC<AppleTVHeroProps> = ({
id: currentItem.id,
type: currentItem.type,
title: currentItem.name,
addonId: currentItem.addonId,
metadata: {
poster: currentItem.poster,
banner: currentItem.banner,
releaseInfo: currentItem.releaseInfo,
genres: currentItem.genres
}
};
}
};
// Add resume data if we have progress that's not near completion
if (shouldResume && watchProgress) {
@ -697,6 +698,7 @@ const AppleTVHero: React.FC<AppleTVHeroProps> = ({
id: currentItem.id,
type: currentItem.type,
title: currentItem.name,
addonId: currentItem.addonId,
metadata: {
poster: currentItem.poster,
banner: currentItem.banner,
@ -1184,6 +1186,7 @@ const AppleTVHero: React.FC<AppleTVHeroProps> = ({
navigation.navigate('Metadata', {
id: currentItem.id,
type: currentItem.type,
addonId: currentItem.addonId,
});
}
}}
@ -1220,6 +1223,7 @@ const AppleTVHero: React.FC<AppleTVHeroProps> = ({
navigation.navigate('Metadata', {
id: currentItem.id,
type: currentItem.type,
addonId: currentItem.addonId,
});
}
}}