Skip to content

Make class variables as instance variables to allow multiple instances of pyxtream in one flask app #17

@ragmehos

Description

@ragmehos

Hi @superolmo ,

Is it possible to make class variables to instance variables so that if we want to use two instances of the same pyxtream in the flask app, we can. Today, its not possible since the class variables will conflict and it gets hard. I would do it, but the compatibility with Hypnotix is something I dont know and test, but I dont think why it would matter making it an instance variable.

For e.g
xt1 = XTream(servername1, username1, password1, url1)
xt1.load_iptv()
xt2 = XTream(servername2, username2, password2, url2)
xt2.load_iptv()

but if it is done so now, xt2 would not load properly because the XTream class has auth_data which is a class variable and that would have been initialized for xt1 and would skip xt2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions