added addonId to continue watching

This commit is contained in:
chrisk325 2025-12-30 15:18:16 +05:30 committed by GitHub
parent 9012bfdea9
commit b00812333a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,6 +35,7 @@ interface ContinueWatchingItem extends StreamingContent {
season?: number;
episode?: number;
episodeTitle?: string;
addonId?: string;
}
// Define the ref interface
@ -997,12 +998,14 @@ const ContinueWatchingSection = React.forwardRef<ContinueWatchingRef>((props, re
id: item.id,
type: item.type,
episodeId: episodeId
addonId: item.addonId
});
} else {
// For movies or series without specific episode, navigate to main content
navigation.navigate('Streams', {
id: item.id,
type: item.type
addonId: item.addonId
});
}
} catch (error) {
@ -1505,4 +1508,4 @@ const styles = StyleSheet.create({
export default React.memo(ContinueWatchingSection, (prevProps, nextProps) => {
// This component has no props that would cause re-renders
return true;
});
});