- 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
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