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

Getting Sources #15

Open
jdauthre opened this issue May 21, 2021 · 0 comments
Open

Getting Sources #15

jdauthre opened this issue May 21, 2021 · 0 comments

Comments

@jdauthre
Copy link

  • openwebifpy version: 3.2.7
  • Python version: 3.9.1
  • Operating System: windows 10

Description

I am trying to get all the sources for a user defined bouquet.
Using:
import openwebif.api
client = openwebif.api.CreateDevice('192.168.1.110')
sources = client.get_bouquet_sources()
print(sources)

the result correctly prints out the sources for the first bouquet, but if I attempt to get another bouquet I get nothing:
INFO:openwebif.api:http://192.168.1.110: OpenWebIf version OWIF 1.4.5
INFO:openwebif.api:http://192.168.1.110 User defined bouquet to load: Terrestrial (TV)
{}

I have tried every which way ie:
sources = client.get_bouquet_sources('Terrestrial")
sources = client.get_bouquet_sources("Terrestrial (TV)")
sources = client.get_bouquet_sources(bouquet = "Terrestrial (TV)")
sources = client.get_bouquet_sources(bouquet = 2)
etc etc

if I use:

bouquets = client.get_all_bouquets()
print(bouquets)
then I get:
{'bouquets': [['1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.favourites.tv" ORDER BY bouquet', 'Favourites (TV)'], ['1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.LastScanned.tv" ORDER BY bouquet', 'Last Scanned'], ['1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.terrestrial__tv_.tv" ORDER BY bouquet', 'Terrestrial (TV)'], ['1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.satellite__tv_.tv" ORDER BY bouquet', 'Satellite (TV)']]}

So I am at a loss to know how to write the bouquet parameter

Any help appreciated

James

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