Channel icon indicating copy to clipboard operation
Channel copied to clipboard

.ch file support for enigma2 boxes

Open thabich opened this issue 14 years ago • 1 comments

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

thabich avatar Feb 02 '12 20:02 thabich

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)

SharkHunter avatar Mar 01 '12 09:03 SharkHunter