Jump to content


Photo

[help] How to add channels.xml (python code) from epgimporter


  • Please log in to reply
10 replies to this topic

#1 frankviana

  • Senior Member
  • 472 posts

+4
Neutral

Posted 2 August 2021 - 23:58

A few days ago I did tests with epg importer and a modified plugin to create lamedb channels.xml. I need it to be embedded in the epgimporter code. Is there any way to do this?

 

I currently created a script in cron. Here in South America we don't have channels like rytec, so everything needs to be done manually.

 

I need the files to be created in alphabetical order, but I don't understand python. I did only few code changes...

 

See my files:

 

python file added after  line in cron (0 22 * * *    /etc/lamedtochannel.py)

 

Attached File  lamedtochannel.py   12.81KB   5 downloads

 

 

My epgimport source:

 

Attached File  Banda_C.sources.xml   238bytes   3 downloads

 

 

My channels after run (./lamedtochannel.py from /etc)

 

Attached File  canais.xml   355.3KB   3 downloads

 

 

My lamedb

 

Attached File  lamedb.zip   55.28KB   2 downloads

 

 

My file python (2.7) modified for Windows (py PC-lamedtochannel.py)

 

Attached File  PC-lamedtochannel.py   12.1KB   6 downloads

 

 

Any way to modify a simple code for extract/create channels.xml/canais.xml from lamedb more easy and alphabetically? No need delete audio, data.. create all from source (lamedb).

 

 

Thanks.

 

Sorry my english.

 

Frank

=============================


Dreambox Two, GT-Media V8XS, GT-Media M7x, GT-Media v9 prime, Gt-Media Finder Meter 2, , TBS 6903-x v2, Octagon SF8008 single, Edision OS Mini 4k, Zgemma h9s SE, GT-Media V8UHD, Raspberry Pi 4, T95 Max + (CoreElec/Tvheadend), Freesky Triplo X, Zgemma h9 twin, Zgemma h9s, Amiko SHD 8900, Gt-Media GTC, Octagon SX88+, Octagon SX88, Vu Zero, Vu+ Zero 4K, Mecool K1/K2/K3, Azamerica s2010, Azamerica s810B, Nazabox Xgame, Koqit K1 mini, TBS 5520se, TBS 5925, TBS 6922se, Openbox X5, Openbox S9, AZBOX TITAN twin, AZBOX Premium+, AZBOX Elite , Rasp Pi, Rasp Pi 2/3, Orange Pi PC, Coolsat 5000, Dm528s, DM800se, Satlink 6933, Satlink 6960, Satlink 6932, GT-Media V8, Gt-Media V8 Meter,  PixelView PlayTV USB SBTVD ISDB-T (dib0700), Mygica S270 ISDB-T (Siano Rio). C-Band Motorized dish - 5,00m (20ºE - 116.8ºW), Ku-Band Motorized dish - 1,80m (3ºw - 116,8ºW)


Re: [help] How to add channels.xml (python code) from epgimporter #2 frankviana

  • Senior Member
  • 472 posts

+4
Neutral

Posted 3 August 2021 - 00:16

I think I changed a little python file (lamedtochannel) enigma2 code, because it's replacing a part of the reference on the 5ºE C-band satellite.

 

Example

 

1:0:1:1:3:1:(3e-C)0000:0:0:0

        <channel id="Reuters TV News">1:0:1:1:3:1:(3e-C)0000:0:0:0:</channel> <!-- Reuters TV News (5e-C) -->
        <channel id="CBS Reality Africa">1:0:1:1:f:1:(3e-C)0000:0:0:0:</channel> <!-- CBS Reality Africa (5e-C) -->
        <channel id="AFN|prime Atlantic">1:0:19:66:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN|prime Atlantic (5e-C) -->
        <channel id="AFN|news">1:0:19:67:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN|news (5e-C) -->
        <channel id="AFN|sports">1:0:19:68:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN|sports (5e-C) -->
        <channel id="AFN|prime Pacific">1:0:19:69:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN|prime Pacific (5e-C) -->
        <channel id="AFN|spectrum">1:0:19:6a:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN|spectrum (5e-C) -->
        <channel id="AFN|sports 2">1:0:16:6b:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN|sports 2 (5e-C) -->
        <channel id="AFN|family">1:0:19:6c:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN|family (5e-C) -->
        <channel id="AFN|movie">1:0:19:6d:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN|movie (5e-C) -->
        <channel id="AFN Atlantic Eagle">1:0:2:78:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN Atlantic Eagle (5e-C) -->
        <channel id="The Voice">1:0:2:79:65:12:(3e-C)0000:0:0:0:</channel> <!-- The Voice (5e-C) -->
        <channel id="Power Talk">1:0:2:7a:65:12:(3e-C)0000:0:0:0:</channel> <!-- Power Talk (5e-C) -->
        <channel id="AFN Fans">1:0:2:7c:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN Fans (5e-C) -->
        <channel id="AFN Hot AC">1:0:2:7d:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN Hot AC (5e-C) -->
        <channel id="AFN Legacy">1:0:2:7e:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN Legacy (5e-C) -->
        <channel id="AFN Joe FM">1:0:2:7f:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN Joe FM (5e-C) -->
        <channel id="AFN Gravity">1:0:2:80:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN Gravity (5e-C) -->
        <channel id="AFN Country">1:0:2:81:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN Country (5e-C) -->
        <channel id="NPR International">1:0:2:82:65:12:(3e-C)0000:0:0:0:</channel> <!-- NPR International (5e-C) -->
        <channel id="AFN Seasonal">1:0:2:83:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN Seasonal (5e-C) -->
        <channel id="AFN Contingency">1:0:2:84:65:12:(3e-C)0000:0:0:0:</channel> <!-- AFN Contingency (5e-C) -->
        <channel id="Aviano Eagle">1:0:2:87:65:12:(3e-C)0000:0:0:0:</channel> <!-- Aviano Eagle (5e-C) -->
        <channel id="Bavaria Eagle">1:0:2:88:65:12:(3e-C)0000:0:0:0:</channel> <!-- Bavaria Eagle (5e-C) -->
        <channel id="Benelux Eagle">1:0:2:89:65:12:(3e-C)0000:0:0:0:</channel> <!-- Benelux Eagle (5e-C) -->
        <channel id="Incirlik Eagle">1:0:2:8a:65:12:(3e-C)0000:0:0:0:</channel> <!-- Incirlik Eagle (5e-C) -->
        <channel id="Kaiserslautern Eagle">1:0:2:8b:65:12:(3e-C)0000:0:0:0:</channel> <!-- Kaiserslautern Eagle (5e-C) -->
        <channel id="Naples Eagle">1:0:2:8c:65:12:(3e-C)0000:0:0:0:</channel> <!-- Naples Eagle (5e-C) -->
        <channel id="Rota Eagle">1:0:2:8d:65:12:(3e-C)0000:0:0:0:</channel> <!-- Rota Eagle (5e-C) -->
        <channel id="Souda Bay Eagle">1:0:2:8e:65:12:(3e-C)0000:0:0:0:</channel> <!-- Souda Bay Eagle (5e-C) -->
        <channel id="Spangdahlem Eagle">1:0:2:8f:65:12:(3e-C)0000:0:0:0:</channel> <!-- Spangdahlem Eagle (5e-C) -->
        <channel id="Stuttgart Eagle">1:0:2:90:65:12:(3e-C)0000:0:0:0:</channel> <!-- Stuttgart Eagle (5e-C) -->
        <channel id="Vicenza Eagle">1:0:2:91:65:12:(3e-C)0000:0:0:0:</channel> <!-- Vicenza Eagle (5e-C) -->
        <channel id="Weisbaden Eagle">1:0:2:92:65:12:(3e-C)0000:0:0:0:</channel> <!-- Weisbaden Eagle (5e-C) -->
        <channel id="Bahrain">1:0:2:93:65:12:(3e-C)0000:0:0:0:</channel> <!-- Bahrain (5e-C) -->
        <channel id="Reaper (EPG Video)">1:0:19:191:65:12:(3e-C)0000:0:0:0:</channel> <!-- Reaper (EPG Video) (5e-C) -->
        <channel id="Bars &amp; Tone">1:0:19:192:65:12:(3e-C)0000:0:0:0:</channel> <!-- Bars &amp; Tone (5e-C) -->
        <channel id="AIT LAGOS OB">1:0:1:1:b0:b1:(3e-C)0000:0:0:0:</channel> <!-- AIT LAGOS OB (5e-C) -->
        <channel id="DOVE TELEVISION">1:0:1:2:e0:1:(3e-C)0000:0:0:0:</channel> <!-- DOVE TELEVISION (5e-C) -->
        <channel id="BBC English (E Af.)">1:0:2:364d:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC English (E Af.) (5e-C) -->
        <channel id="BBC English (W Af.)">1:0:2:364e:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC English (W Af.) (5e-C) -->
        <channel id="BBC English News">1:0:2:3656:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC English News (5e-C) -->
        <channel id="BBC Arabic">1:0:2:365c:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC Arabic (5e-C) -->
        <channel id="BBC French (Africa)">1:0:2:366a:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC French (Africa) (5e-C) -->
        <channel id="BBC Gahuza">1:0:2:366b:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC Gahuza (5e-C) -->
        <channel id="BBC Hausa">1:0:2:366c:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC Hausa (5e-C) -->
        <channel id="BBC Somali">1:0:2:3683:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC Somali (5e-C) -->
        <channel id="BBC Afr Feed 4">1:0:2:36a2:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC Afr Feed 4 (5e-C) -->
        <channel id="BBC Afr Feed 6">1:0:2:36a4:142:bbc:(3e-C)0000:0:0:0:</channel> <!-- BBC Afr Feed 6 (5e-C) -->
        <channel id="TVC_News">1:0:1:1:1000:2000:(3e-C)0000:0:0:0:</channel> <!-- TVC_News (5e-C) -->
        <channel id="TVC ENTERTAINMENT">1:0:1:2:1000:2000:(3e-C)0000:0:0:0:</channel> <!-- TVC ENTERTAINMENT (5e-C) -->
        <channel id="WAP TV">1:0:1:1:1:1:(3e-C)0e71:0:0:0:</channel> <!-- WAP TV (5e-C) -->
        <channel id="TV-001">1:0:1:1:0:0:(3e-C)0e7e:0:0:0:</channel> <!-- TV-001 (5e-C) -->

Dreambox Two, GT-Media V8XS, GT-Media M7x, GT-Media v9 prime, Gt-Media Finder Meter 2, , TBS 6903-x v2, Octagon SF8008 single, Edision OS Mini 4k, Zgemma h9s SE, GT-Media V8UHD, Raspberry Pi 4, T95 Max + (CoreElec/Tvheadend), Freesky Triplo X, Zgemma h9 twin, Zgemma h9s, Amiko SHD 8900, Gt-Media GTC, Octagon SX88+, Octagon SX88, Vu Zero, Vu+ Zero 4K, Mecool K1/K2/K3, Azamerica s2010, Azamerica s810B, Nazabox Xgame, Koqit K1 mini, TBS 5520se, TBS 5925, TBS 6922se, Openbox X5, Openbox S9, AZBOX TITAN twin, AZBOX Premium+, AZBOX Elite , Rasp Pi, Rasp Pi 2/3, Orange Pi PC, Coolsat 5000, Dm528s, DM800se, Satlink 6933, Satlink 6960, Satlink 6932, GT-Media V8, Gt-Media V8 Meter,  PixelView PlayTV USB SBTVD ISDB-T (dib0700), Mygica S270 ISDB-T (Siano Rio). C-Band Motorized dish - 5,00m (20ºE - 116.8ºW), Ku-Band Motorized dish - 1,80m (3ºw - 116,8ºW)


Re: [help] How to add channels.xml (python code) from epgimporter #3 Pr2

  • PLi® Contributor
  • 6,070 posts

+257
Excellent

Posted 3 August 2021 - 09:01

why are you starting form the lamedb?

 

If you create favorites (aka bouquets) with the channels that you are watching, you will have immediately the right service reference in it.

So you will ease your life if you work from the userbouquet files than from the lamedb. 


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: [help] How to add channels.xml (python code) from epgimporter #4 frankviana

  • Senior Member
  • 472 posts

+4
Neutral

Posted 3 August 2021 - 12:04

why are you starting form the lamedb?

 

If you create favorites (aka bouquets) with the channels that you are watching, you will have immediately the right service reference in it.

So you will ease your life if you work from the userbouquet files than from the lamedb. 

Do you have some steps? I don't know how.

 

Thanks.


Dreambox Two, GT-Media V8XS, GT-Media M7x, GT-Media v9 prime, Gt-Media Finder Meter 2, , TBS 6903-x v2, Octagon SF8008 single, Edision OS Mini 4k, Zgemma h9s SE, GT-Media V8UHD, Raspberry Pi 4, T95 Max + (CoreElec/Tvheadend), Freesky Triplo X, Zgemma h9 twin, Zgemma h9s, Amiko SHD 8900, Gt-Media GTC, Octagon SX88+, Octagon SX88, Vu Zero, Vu+ Zero 4K, Mecool K1/K2/K3, Azamerica s2010, Azamerica s810B, Nazabox Xgame, Koqit K1 mini, TBS 5520se, TBS 5925, TBS 6922se, Openbox X5, Openbox S9, AZBOX TITAN twin, AZBOX Premium+, AZBOX Elite , Rasp Pi, Rasp Pi 2/3, Orange Pi PC, Coolsat 5000, Dm528s, DM800se, Satlink 6933, Satlink 6960, Satlink 6932, GT-Media V8, Gt-Media V8 Meter,  PixelView PlayTV USB SBTVD ISDB-T (dib0700), Mygica S270 ISDB-T (Siano Rio). C-Band Motorized dish - 5,00m (20ºE - 116.8ºW), Ku-Band Motorized dish - 1,80m (3ºw - 116,8ºW)


Re: [help] How to add channels.xml (python code) from epgimporter #5 doglover

  • Rytec EPG Team
  • 17,003 posts

+637
Excellent

Posted 3 August 2021 - 15:46

A long time ago, I tried also to automate this.

Never was really succesfull.  The problem being that providers are very creative with channel names. And if they move a channel they change the name sometimes.

 

But I still found the script I was using.  It is a Visual Basic script.

On Windows8 this still works.

 

Copy the lamedb file to a folder on your PC.

Add to this the makeref.vbs script (attached)

Run the the script (double click on it)

There will be a file created:  refs.txt.

If you want the list to be alfabetically, just sort the refs.txt in a text editor (PSPad or Notepad++)

 

 

Copy the content of the refs.txt to the canais.xml file.

 

However this procedure only works for epgimport if you have the <channel id="xxx" in the epg xmtv file set equal to the channel name as it appears on your receiver.

You soon run into problems, with channels like Animal Planet, History and so on.

They can appear multiple times with a different schedule.

 

The only thing you can do is manually edit the canais.xml file.

 

If you want to go that way, there are several util I am using to faciltate this.

Let me know.

 

If you want this file to be alfabetically, just sorted

Attached Files


Edited by doglover, 3 August 2021 - 15:48.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: [help] How to add channels.xml (python code) from epgimporter #6 ims

  • PLi® Core member
  • 13,617 posts

+211
Excellent

Posted 3 August 2021 - 16:57

If you want refresh channels in bouquets, when provider changing transponders, you can use RefreshBouquet plugin. There are a lot of options...


Edited by ims, 3 August 2021 - 17:00.

Kdo nic nedělá, nic nezkazí!

Re: [help] How to add channels.xml (python code) from epgimporter #7 frankviana

  • Senior Member
  • 472 posts

+4
Neutral

Posted 3 August 2021 - 18:15

Thanks for try to help me, but I have same problems here using your script...

 

Attached File  script.png   50.95KB   1 downloads

 

EPG import stop after this strange symbols, but need replace.

 

I found a solution and works now after some changes.

 

Attached File  replace.png   20.15KB   0 downloads

 

Attached File  epgimp.png   1014.96KB   0 downloads

 

Attached File  1_0_1_767E_2_1_B530000_0_0_0_20210803141224.jpg   184.87KB   0 downloads

 

Attached File  1_0_1_767E_2_1_B530000_0_0_0_20210803141245.jpg   167.86KB   0 downloads

 

Now I want a way to insert this python from epgimport to work automatic. I think the cron don't work here (0 22 * * *    /etc/lamedtochannel.py)

 

I'm using XMLTV import only for try to generate channels (canais.xml) automatic.

 

Attached File  xmltv.png   720.43KB   0 downloads

 

See the plugin.py

def onBootXmlStartCheck():
    TermConsole.ePopen('lamedtochannel.py')
    downloadPage("https://test/lamedtochannel.py", "/etc/lamedtochannel.py")
    TermConsole.ePopen('chmod 755 /etc/lamedtochannel.py')

Edited by frankviana, 3 August 2021 - 18:16.

Dreambox Two, GT-Media V8XS, GT-Media M7x, GT-Media v9 prime, Gt-Media Finder Meter 2, , TBS 6903-x v2, Octagon SF8008 single, Edision OS Mini 4k, Zgemma h9s SE, GT-Media V8UHD, Raspberry Pi 4, T95 Max + (CoreElec/Tvheadend), Freesky Triplo X, Zgemma h9 twin, Zgemma h9s, Amiko SHD 8900, Gt-Media GTC, Octagon SX88+, Octagon SX88, Vu Zero, Vu+ Zero 4K, Mecool K1/K2/K3, Azamerica s2010, Azamerica s810B, Nazabox Xgame, Koqit K1 mini, TBS 5520se, TBS 5925, TBS 6922se, Openbox X5, Openbox S9, AZBOX TITAN twin, AZBOX Premium+, AZBOX Elite , Rasp Pi, Rasp Pi 2/3, Orange Pi PC, Coolsat 5000, Dm528s, DM800se, Satlink 6933, Satlink 6960, Satlink 6932, GT-Media V8, Gt-Media V8 Meter,  PixelView PlayTV USB SBTVD ISDB-T (dib0700), Mygica S270 ISDB-T (Siano Rio). C-Band Motorized dish - 5,00m (20ºE - 116.8ºW), Ku-Band Motorized dish - 1,80m (3ºw - 116,8ºW)


Re: [help] How to add channels.xml (python code) from epgimporter #8 frankviana

  • Senior Member
  • 472 posts

+4
Neutral

Posted 3 August 2021 - 18:24

This pluing was modified by a Brazilian to generate channels.xml, but don't work with my sources. I don't know why not is compatible.

 

Attached File  enigma2-plugin-extensions-xmlimporter-byfccandido_1.6_all.ipk.zip   35.99KB   2 downloads

 

I need to insert to epgimport.

 

I'm using this XMLTV import only for generate canais.xml (channels.xml) after my changes (/usr/bin to /etc) and other code changes. Alternatively I use cron when it doesn't work


Dreambox Two, GT-Media V8XS, GT-Media M7x, GT-Media v9 prime, Gt-Media Finder Meter 2, , TBS 6903-x v2, Octagon SF8008 single, Edision OS Mini 4k, Zgemma h9s SE, GT-Media V8UHD, Raspberry Pi 4, T95 Max + (CoreElec/Tvheadend), Freesky Triplo X, Zgemma h9 twin, Zgemma h9s, Amiko SHD 8900, Gt-Media GTC, Octagon SX88+, Octagon SX88, Vu Zero, Vu+ Zero 4K, Mecool K1/K2/K3, Azamerica s2010, Azamerica s810B, Nazabox Xgame, Koqit K1 mini, TBS 5520se, TBS 5925, TBS 6922se, Openbox X5, Openbox S9, AZBOX TITAN twin, AZBOX Premium+, AZBOX Elite , Rasp Pi, Rasp Pi 2/3, Orange Pi PC, Coolsat 5000, Dm528s, DM800se, Satlink 6933, Satlink 6960, Satlink 6932, GT-Media V8, Gt-Media V8 Meter,  PixelView PlayTV USB SBTVD ISDB-T (dib0700), Mygica S270 ISDB-T (Siano Rio). C-Band Motorized dish - 5,00m (20ºE - 116.8ºW), Ku-Band Motorized dish - 1,80m (3ºw - 116,8ºW)


Re: [help] How to add channels.xml (python code) from epgimporter #9 frankviana

  • Senior Member
  • 472 posts

+4
Neutral

Posted 3 August 2021 - 18:39

New plugin and changes. I think is good now. No need sort alfabetically, because I did only for see errors, but I now, easy to find/edit using notepad++

 

Attached File  lamedtochannel.py   12.88KB   12 downloads

 

Attached File  test.png   24.87KB   1 downloads

 

Attached File  test 2.png   44.85KB   0 downloads

 

Attached File  test 3.png   75.53KB   0 downloads

 

Attached File  test 4.png   77.64KB   0 downloads


Dreambox Two, GT-Media V8XS, GT-Media M7x, GT-Media v9 prime, Gt-Media Finder Meter 2, , TBS 6903-x v2, Octagon SF8008 single, Edision OS Mini 4k, Zgemma h9s SE, GT-Media V8UHD, Raspberry Pi 4, T95 Max + (CoreElec/Tvheadend), Freesky Triplo X, Zgemma h9 twin, Zgemma h9s, Amiko SHD 8900, Gt-Media GTC, Octagon SX88+, Octagon SX88, Vu Zero, Vu+ Zero 4K, Mecool K1/K2/K3, Azamerica s2010, Azamerica s810B, Nazabox Xgame, Koqit K1 mini, TBS 5520se, TBS 5925, TBS 6922se, Openbox X5, Openbox S9, AZBOX TITAN twin, AZBOX Premium+, AZBOX Elite , Rasp Pi, Rasp Pi 2/3, Orange Pi PC, Coolsat 5000, Dm528s, DM800se, Satlink 6933, Satlink 6960, Satlink 6932, GT-Media V8, Gt-Media V8 Meter,  PixelView PlayTV USB SBTVD ISDB-T (dib0700), Mygica S270 ISDB-T (Siano Rio). C-Band Motorized dish - 5,00m (20ºE - 116.8ºW), Ku-Band Motorized dish - 1,80m (3ºw - 116,8ºW)


Re: [help] How to add channels.xml (python code) from epgimporter #10 frankviana

  • Senior Member
  • 472 posts

+4
Neutral

Posted 3 August 2021 - 18:44

This pluing was modified by a Brazilian to generate channels.xml, but don't work with my sources. I don't know why not is compatible.

 

attachicon.gifenigma2-plugin-extensions-xmlimporter-byfccandido_1.6_all.ipk.zip

 

I need to insert to epgimport.

 

I'm using this XMLTV import only for generate canais.xml (channels.xml) after my changes (/usr/bin to /etc) and other code changes. Alternatively I use cron when it doesn't work

XMLTV only 796 events and don't accept IPTV

 

Attached File  XML.png   333.24KB   0 downloads


Dreambox Two, GT-Media V8XS, GT-Media M7x, GT-Media v9 prime, Gt-Media Finder Meter 2, , TBS 6903-x v2, Octagon SF8008 single, Edision OS Mini 4k, Zgemma h9s SE, GT-Media V8UHD, Raspberry Pi 4, T95 Max + (CoreElec/Tvheadend), Freesky Triplo X, Zgemma h9 twin, Zgemma h9s, Amiko SHD 8900, Gt-Media GTC, Octagon SX88+, Octagon SX88, Vu Zero, Vu+ Zero 4K, Mecool K1/K2/K3, Azamerica s2010, Azamerica s810B, Nazabox Xgame, Koqit K1 mini, TBS 5520se, TBS 5925, TBS 6922se, Openbox X5, Openbox S9, AZBOX TITAN twin, AZBOX Premium+, AZBOX Elite , Rasp Pi, Rasp Pi 2/3, Orange Pi PC, Coolsat 5000, Dm528s, DM800se, Satlink 6933, Satlink 6960, Satlink 6932, GT-Media V8, Gt-Media V8 Meter,  PixelView PlayTV USB SBTVD ISDB-T (dib0700), Mygica S270 ISDB-T (Siano Rio). C-Band Motorized dish - 5,00m (20ºE - 116.8ºW), Ku-Band Motorized dish - 1,80m (3ºw - 116,8ºW)


Re: [help] How to add channels.xml (python code) from epgimporter #11 frankviana

  • Senior Member
  • 472 posts

+4
Neutral

Posted 3 August 2021 - 18:51

A long time ago, I tried also to automate this.

Never was really succesfull.  The problem being that providers are very creative with channel names. And if they move a channel they change the name sometimes.

 

But I still found the script I was using.  It is a Visual Basic script.

On Windows8 this still works.

 

Copy the lamedb file to a folder on your PC.

Add to this the makeref.vbs script (attached)

Run the the script (double click on it)

There will be a file created:  refs.txt.

If you want the list to be alfabetically, just sort the refs.txt in a text editor (PSPad or Notepad++)

 

 

Copy the content of the refs.txt to the canais.xml file.

 

However this procedure only works for epgimport if you have the <channel id="xxx" in the epg xmtv file set equal to the channel name as it appears on your receiver.

You soon run into problems, with channels like Animal Planet, History and so on.

They can appear multiple times with a different schedule.

 

The only thing you can do is manually edit the canais.xml file.

 

If you want to go that way, there are several util I am using to faciltate this.

Let me know.

 

If you want this file to be alfabetically, just sorted

Yes... complicated. Always I need change my "private" guide.xml names too. But here we don't have providers like there are in Europe. It's just a way of trying to work, even if it's of poor quality.

 

I will try to check the line in epgimporter plugin.py to insert generate channels.xml on boot

 

But, anyway, thanks for the attention.


Dreambox Two, GT-Media V8XS, GT-Media M7x, GT-Media v9 prime, Gt-Media Finder Meter 2, , TBS 6903-x v2, Octagon SF8008 single, Edision OS Mini 4k, Zgemma h9s SE, GT-Media V8UHD, Raspberry Pi 4, T95 Max + (CoreElec/Tvheadend), Freesky Triplo X, Zgemma h9 twin, Zgemma h9s, Amiko SHD 8900, Gt-Media GTC, Octagon SX88+, Octagon SX88, Vu Zero, Vu+ Zero 4K, Mecool K1/K2/K3, Azamerica s2010, Azamerica s810B, Nazabox Xgame, Koqit K1 mini, TBS 5520se, TBS 5925, TBS 6922se, Openbox X5, Openbox S9, AZBOX TITAN twin, AZBOX Premium+, AZBOX Elite , Rasp Pi, Rasp Pi 2/3, Orange Pi PC, Coolsat 5000, Dm528s, DM800se, Satlink 6933, Satlink 6960, Satlink 6932, GT-Media V8, Gt-Media V8 Meter,  PixelView PlayTV USB SBTVD ISDB-T (dib0700), Mygica S270 ISDB-T (Siano Rio). C-Band Motorized dish - 5,00m (20ºE - 116.8ºW), Ku-Band Motorized dish - 1,80m (3ºw - 116,8ºW)



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users