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

.ch file support for enigma2 boxes #14

Open
thabich opened this issue Feb 2, 2012 · 1 comment
Open

.ch file support for enigma2 boxes #14

thabich opened this issue Feb 2, 2012 · 1 comment

Comments

@thabich
Copy link

thabich commented Feb 2, 2012

Hi!
I'm trying to create a .ch file for enigma2 to stream TV channels.

You can access the bouquet list via an url:

http://enigma2.box/web/getservices?sRef=1%3A7%3A1%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3A(type%20%3D%3D%201)%20%7C%7C%20(type%20%3D%3D%2017)%20%7C%7C%20(type%20%3D%3D%20195)%20%7C%7C%20(type%20%3D%3D%2025)%20FROM%20BOUQUET%20%22bouquets.tv%22%20ORDER%20BY%20bouquet

You'll receive an XML file containing:

<e2service>
<e2servicereference>1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe33.tv" ORDER BY bouquet</e2servicereference>
<e2servicename>Bouquetname</e2servicename>
</e2service>

Which should be one folder.
Next URL is:

http://enigma2.box/web/getservices?sRef=1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.dbe33.tv" ORDER BY bouquet <-- unsure if  this works without urlencode

You'll receive:

<e2service>
  <e2servicereference>1:0:19:526F:41D:1:C00000:0:0:0:</e2servicereference>
<e2servicename>TV Channel</e2servicename>
  </e2service>

Each entry must be mapped to the File-URL:

http://enigma2.box:8001/1:0:19:526F:41D:1:C00000:0:0:0:

I'm pretty unsure how to realize this with the given .ch style. Is this possible to code? My first problem is the fact that there are line breaks in the XML Files.

Best regards

Thorsten

@SharkHunter
Copy link
Owner

Yes it should be possible to code this in channels.
Your first folder should look something like
matcher=([^<]+)/s*([^<]+)
order=url,name
url=http://enigma2.box/web/getservices?sRef=
The second (which is a "media")
matcher=([^<]+)/s*([^<]+)
order=url,name
url=http://enigma2.box:8001/

I'm unsire about this stuff "FROM BOUQUET "userbouquet.dbe33.tv" ORDER BY bouquet" do you really need that in the URL? If you do you for sure need to escape it (since it contains spaces)

NOTE!! The /s* stuff should match your whitspaces (newlines included)

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

2 participants