Project

General

Profile

Enigma2 channel converter

Added by Anonymous almost 11 years ago

Just to let everybody know, I've created a channel converter to convert Enigma2 lamedb channellists to the Tvheadend format.
Since VPID,APID, TPID and CAID are not available in lamedb, I had to ommit these values.
If somebody likes to test and give feedback, linux shell script and sample output is located at:

https://bitbucket.org/picons/lamedb2tvh/src

If all works OK, next step, wich is pretty easy, is to auto-add channel logos link...

EDIT: This converts to the NEW config format


Replies (37)

RE: Enigma2 channel converter - Added by gary tan over 10 years ago

I have the same issue but more than likely because i dont have latest tvheadend (i use openelec and latest i can get is HTS Tvheadend 3.9.383~g1745e0c). Folder layouts are probably different with newer builds. For example, my input folder is like this ~/input/linuxdvb/networks, but newer builds must have /input/dvb/networks/ going by your script. Manually changing it doesnt work. Anyways hopefully i can get a newer build in the coming months that works with your script as i would love to have it working.

RE: Enigma2 channel converter - Added by Michael Donet over 10 years ago

@Sascha Schmidt

I run the latest TVH from github. I moved channel and channeltags directory to different location.
And I used this command:

sudo python e2ToTVH.py -i /home/tvh -o /home/hts/.hts/tvheadend

RE: Enigma2 channel converter - Added by Sascha Schmidt over 10 years ago

I've added a debug switch (-d) to my script. I hope that this help to identify problems of wrong created tvh configurations.

RE: Enigma2 channel converter - Added by Michael Donet over 10 years ago

OK, here is the output with -d switch:

http://pastebin.com/sMUHYeE9

And the list is Hotbird list from here:
http://www.vhannibal.net/enigma2.php

It still creates empty channel and channetags directories.
Any idea why?
Thanks.

RE: Enigma2 channel converter - Added by Sascha Schmidt over 10 years ago

Can you attach (zip) your engima2 directory where lamedb and your bouquet/channel files exist?

RE: Enigma2 channel converter - Added by Sascha Schmidt over 10 years ago

Your enigma2 format is a little bit different to the one from me:

My bouquet.tv as an example:

#NAME Bouquets (TV)
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.oeffentliche__tv_.tv" ORDER BY bouquet
#SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.private__tv_.tv" ORDER BY bouquet

Your bouquet.tv as an example:

#NAME Bouquets (TV)
#SERVICE: 1:7:1:0:0:0:0:0:0:0:userbouquet.vh01.tv
#SERVICE: 1:7:1:0:0:0:0:0:0:0:userbouquet.vh02.tv
#SERVICE: 1:7:1:0:0:0:0:0:0:0:userbouquet.vh03.tv

Which engima2 and/or image are you using?

RE: Enigma2 channel converter - Added by Carlo Landmeter over 10 years ago

Ive tried both scripts, but the first one (bash version) does not write channel numbers. Isn't it possible to write channel numbers?

The second one in python doesn't work at all. I get:

[DEBUG] Found TVH service: 81d9395c4c615ae644c47ad08a2ed853 (NUVOLARI / Arqiva)
[DEBUG] Found TVH service: 1c5ceb36e6b9d55021bf7c62be9109e7 (FTL Farsi / Arqiva)
[DEBUG] Found TVH service: 3df663d9c8fb8cf11f70649ae024db79 (Farsi1 / ARQIVA)
[DEBUG] Write found bouquets
Writing TV-Headend bouquet configuration...
Wrting bouquet file: Favourites
[DEBUG] Bouquet name: Favourites
[DEBUG] Write found services
Writing TV-Headend service configuration...
  ServiceReference from bouquet not found in lamedb: 1:64:56:0:0:0:0:0:0:0::
[DEBUG] END OF CODE

Its not possible for the python one to create its own services like the bash one does?

RE: Enigma2 channel converter - Added by gary tan over 10 years ago

anyone get this working for any 28east channel lists? Script runs but channels and channeltags folders are always empty.

RE: Enigma2 channel converter - Added by Anonymous over 10 years ago

About what script are you talking, because it seems somebody hijacked my thread?

RE: Enigma2 channel converter - Added by gary tan over 10 years ago

sorry i was referring to Sascha Schmidt's script. However i have got your script working now and it works great. My only issue is having no channel numbering but nothing you can do about that.

cheers

RE: Enigma2 channel converter - Added by x23piracy x23piracy over 9 years ago

Hi,

is it true that something changed with the config files with latest tvh 3.9?
I tried the lamedb2tvh tool and it worked fine with my old enigma2 channellist but it seems that the script is working only with the old config format?

The folders does not match with the current ones, in special channeltags? thats not a main folder actually its a sub folder of channels\tags... i am confused and don't know how to use it, if i just copy channels and channeltags contents to the matching folders it does not work.

Will there be an update of this script?

Regards X23

(26-37/37)