stremio-addon-sdk icon indicating copy to clipboard operation
stremio-addon-sdk copied to clipboard

Filename is not on the defineSubtitlesHandler extra property

Open daniel-lxs opened this issue 2 years ago • 4 comments

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.

daniel-lxs avatar Nov 28 '23 00:11 daniel-lxs

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

jaruba avatar Nov 28 '23 11:11 jaruba

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.

daniel-lxs avatar Nov 28 '23 12:11 daniel-lxs

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

dexter21767-dev avatar Dec 23 '23 22:12 dexter21767-dev

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

daniel-lxs avatar Dec 24 '23 00:12 daniel-lxs