diff --git a/plexio/models/plex.py b/plexio/models/plex.py index b6afcc2..17719c5 100644 --- a/plexio/models/plex.py +++ b/plexio/models/plex.py @@ -218,7 +218,7 @@ def get_stremio_streams(self, configuration): }, ), subtitles=external_subtitles, - behaviorHints={'bingeGroup': quality_description}, + behaviorHints={'bingeGroup': quality_description, 'filename': filename}, ), ) @@ -250,7 +250,7 @@ def get_stremio_streams(self, configuration): ), url=str(transcode_url % {'videoQuality': 100}), subtitles=external_subtitles, - behaviorHints={'bingeGroup': quality_description}, + behaviorHints={'bingeGroup': quality_description, 'filename': filename}, ), ) @@ -270,7 +270,7 @@ def get_stremio_streams(self, configuration): ), url=str(transcode_url % quality_params['plex_args']), subtitles=external_subtitles, - behaviorHints={'bingeGroup': quality_description}, + behaviorHints={'bingeGroup': quality_description, 'filename': filename}, ), ) diff --git a/plexio/models/stremio.py b/plexio/models/stremio.py index 970653e..6d9e47b 100644 --- a/plexio/models/stremio.py +++ b/plexio/models/stremio.py @@ -55,6 +55,8 @@ class StremioStreamBehaviorHints(StremioBase): not_web_ready: bool = False binge_group: str | None = None proxy_headers: dict | None = None + filename: str | None = None # For client-side release fingerprinting (IntroDB, etc.) + video_size: int | None = None # Stremio-standard byte size of the underlying file class StremioStream(StremioBase):