How does the subtitle add-on detect the movie/episode name?
#1
Hello,
I've been trying to use the subtitle add-on on the PVR Client while watching videos on demand (M3U list).
So, I tried the AutoSubs add-on and it works. The issue is that it never automatically finds the movie/episode name, instead it finds something like pvr.iptvsimple_1880954961.pvr.
I'm not a developer, but I was looking through the AutoSubs git and it seems that it's using the function getPlayingFile() to get the movie/episode name.
I'm guessing that the Subtitle Add-on is also using the same function and as I'm watching VOD, the PVR Client is probably setting a local temp file named pvr.iptvsimple_1880954961.pvr and that's why the Subtitle Add-on never finds a subtitle.
Should it be possible to change the add-on behavior to check if the client is using a M3U list and if so to get the name from the M3U properties?
Another option would be the PVR Client to set the temp file name as it shows in the M3U properties, but that question is for another forum.

Thanks.
Reply
#2
Its up to addons' developers on how to detect. One of them is infolabels.
>>> [zen for zen in zen_of_python if zen][0] == 'long_live_python_2'
True
Reply

Logout Mark Read Team Forum Stats Members Help
How does the subtitle add-on detect the movie/episode name?0