mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-01-11 20:10:25 +00:00
added addonId to continue watching
This commit is contained in:
parent
9012bfdea9
commit
b00812333a
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue