Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which way is a proper way to init subssupport classes? #84

Open
piniya opened this issue May 2, 2022 · 0 comments
Open

Which way is a proper way to init subssupport classes? #84

piniya opened this issue May 2, 2022 · 0 comments

Comments

@piniya
Copy link

piniya commented May 2, 2022

Hi,
i made some small player with classic method self.session.playService(), and now i am trying to init subssupport classes into my player to download and load downloaded subtitles. Everything is great if the movie has no embedded subtitles. Subtitles are downloaded and loaded. But if the movie has embedded subtitles then the issue is that embedded stays on, downloaded are not loaded at all. Even if i change embeddedSupport=True args to False.
Any idea why?

my example code:

from Plugins.Extensions.SubsSupport import SubsSupport, SubsSupportStatus, initSubsSettings

class my_player(Screen, SubsSupportStatus, SubsSupport):
    def __init__(self, session, player):
        Screen.__init__(self, session)

        initSubsSettings()
        SubsSupport.__init__(self, embeddedSupport=True, searchSupport=True)
        SubsSupportStatus.__init__(self)

        sref = eServiceReference(player, 0, "/path/.../)
       # etc ....
       # code for playing ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant