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