denimnani / service.subloader

Kodi automatic subtitles
Other
34 stars 12 forks source link

Cannot detect excluded addons in strm files #15

Open helviojr opened 1 year ago

helviojr commented 1 year ago

I am not sure if it was a Matrix change, but since moved to Matrix, the addon exclusions is no longer working for strm files. It seems it compares the excluded addon names with the video source from videosource() = xbmc.getInfoLabel('Player.Folderpath') and that property now returns the video filename, even if it is a strm file.

It should read the .strm file content where we can find the actual video url, and, if that's the case, the name of the used addon.

helviojr commented 1 year ago

I made a patch so the function videosource() returns the stream url if it is a .strm file. That way we can detect the addon used to open the file/url and can use the addons exclusions.