Stremio / stremio-addon-sdk

🧙 A Node.js SDK for creating and publishing Stremio add-ons
https://www.stremio.com/addon-sdk
MIT License
605 stars 158 forks source link

Filename is not on the defineSubtitlesHandler extra property #248

Open daniel-lxs opened 7 months ago

daniel-lxs commented 7 months ago

According to this: https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/requests/defineSubtitlesHandler.md#extra-parameters

The argument "extra" passed to defineSubtitlesHandler should get a "filename" property however I'm getting undefined when trying to access it: image

Is there any way around this? Without this property I can't search subtitles based on keywords in the filename thus having to try each subtitle one by one instead of just getting the one for that specific file.

Thank you.

jaruba commented 7 months ago

On what platform are you testing? We are still working on getting the same behavior across all apps for subtitle addons, we are also including new behavior hints for streams related to this: https://github.com/Stremio/stremio-addon-sdk/pull/249

daniel-lxs commented 7 months ago

Thank you for answering so fast. I'm on Linux and tried the desktop and web version, neither send the filename to the plugin's endpoint.

dexter21767-dev commented 6 months ago

afaik this is only returned for torrent streams and not used for HTTP streams. are u testing using an HTTP stream (debrid for example)?

daniel-lxs commented 6 months ago

Yes I am using a debrid service, is it not possible to get the filename from a HTTP stream?