Jump to content


Photo

iptv epg


  • Please log in to reply
68 replies to this topic

#1 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 31 August 2013 - 16:54

this topic will continue on the theme "channel id"
In reality, the link with IPTV EPG


You see and can compare
equally applicable tvprogram.xml

each showing a different way EPGImport and crossepg

Attached Files


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #2 doglover

  • Rytec EPG Team
  • 12,984 posts

+394
Excellent

Posted 31 August 2013 - 18:11

You can create epg.dat files with the epgimport program on a Windows PC (or on a Linux PC)

Install python on your PC, together with a couple of packages:

 

pywin32-218.win32-py2.7.exe
zope.interface-3.6.3.win32-py2.7.exe
python-2.7.4.msi
Twisted-13.0.0.win32-py2.7.msi

 

Use google to find them on the net.  (That is way I found them).

 

Then unzip the attached zip file to a dir on your PC.

 

Now open poland.sources.xml and edit the file to suit your needs.  Change the channels file posisition and name and the name and position of the data file

Save the file.

 

Now run from the command line (in the dir you placed the unzipped package):

 

OfflineImport.py  poland.sources.xml

 

An epg.dat file will be created in the same dir.

 

Willy

Attached Files


Edited by doglover, 31 August 2013 - 18:14.

~~Rytec Team~~
Xtrend ET6000 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: iptv epg #3 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 31 August 2013 - 19:13

thank you very much
but where there may be an error

 

 

Python 2.7.4 (default, Apr  6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> OfflineImport.py  poland.sources.xml
SyntaxError: invalid syntax


Edited by maigais, 31 August 2013 - 19:14.

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #4 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 31 August 2013 - 19:26

>>> OfflineImport.py poland.sources.xml
Traceback ( File "<interactive input>", line 1
OfflineImport.py poland.sources.xml
^
SyntaxError: invalid syntax
>>>

Attached Files


Edited by maigais, 31 August 2013 - 19:31.

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #5 doglover

  • Rytec EPG Team
  • 12,984 posts

+394
Excellent

Posted 1 September 2013 - 07:52

Jezus,  I gave you a copy of the dir which I use to produce the epg.dat files.

However I run these on a XP or a Vista machine.

 

I do not know what went wrong.  It simply works on my machine.

 

I hope you installed Python first (python-2.7.4.msi) and the package after that?

 

Willy


~~Rytec Team~~
Xtrend ET6000 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: iptv epg #6 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 1 September 2013 - 08:11

exactly
I have windows7
good to try out ubuntu


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #7 doglover

  • Rytec EPG Team
  • 12,984 posts

+394
Excellent

Posted 1 September 2013 - 08:41

You have to download the ubuntu versions of python for that.

 

Willy


~~Rytec Team~~
Xtrend ET6000 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: iptv epg #8 doglover

  • Rytec EPG Team
  • 12,984 posts

+394
Excellent

Posted 1 September 2013 - 08:53

I just realised, the copy I gave you contains the compiled python files as well.

Maybe you try to delete the .pyc files first.

 

Python will compile them again.

 

Willy


~~Rytec Team~~
Xtrend ET6000 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: iptv epg #9 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 1 September 2013 - 11:58

I do not know either tried it on windows7 and ubuntu
anyway the fault can exist
perhaps still needs some component

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #10 doglover

  • Rytec EPG Team
  • 12,984 posts

+394
Excellent

Posted 1 September 2013 - 12:46

I gave you all, I have.

Did run a test with my latest UK file.  Resut:

 

 

Microsoft Windows XP [versie 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

d:\temp>c:

C:\>cd epg

C:\EPG>cd python

C:\EPG\python>OfflineImport.py uk.sources.xml
[EPGImport] oudeis patch not detected, using epg.dat instead.
[EPGImport] failed to load C implementation, sorry
[EPGImport] nextImport, source= Rytec UK
[EPGImport] afterDownload c:/EPG/ready/rytecxmltvuk.gz
[EPGImport] afterChannelDownload None
[EPGImport] Parsing channels from 'C:\EPG\ready\rytec.channels-sat.xml.gz'
[XMLTVConverter] Enumerating event information
Unknown channel:  TLC.uk
Unknown channel:  TLCplus1.uk
Unknown channel:  BBCi1.uk
Unknown channel:  Drama.uk
Unknown channel:  ShowcasePlus1.uk
[XMLTVConverter] Bad start/stop time: 20130901044000 +0100 (1378006800) - 20130901044000 +0100 (1378006800) [Grahan]
[XMLTVConverter] Bad start/stop time: 20130906034000 +0100 (1378435200) - 20130906034000 +0100 (1378435200) [The Power of Narsimha]
[XMLTVConverter] Bad start/stop time: 20130901042000 +0100 (1378005600) - 20130901042000 +0100 (1378005600) [Deck the Halls]
[XMLTVConverter] Bad start/stop time: 20130902052500 +0100 (1378095900) - 20130902052500 +0100 (1378095900) [Bed & Breakfast]
[XMLTVConverter] Bad start/stop time: 20130903053000 +0100 (1378182600) - 20130903053000 +0100 (1378182600) [Marley and Me]
[XMLTVConverter] Bad start/stop time: 20130904052500 +0100 (1378268700) - 20130904052500 +0100 (1378268700) [Joyful Noise]
[XMLTVConverter] Bad start/stop time: 20130905051500 +0100 (1378354500) - 20130905051500 +0100 (1378354500) [African Cats]
[XMLTVConverter] Bad start/stop time: 20130906051000 +0100 (1378440600) - 20130906051000 +0100 (1378440600) [Judy Moody and the Not Bummer Summer]
Unknown channel:  News18India.uk
Unknown channel:  ABPNews.uk
Unknown channel:  BTSport1.uk
Unknown channel:  BTSport2.uk
Unknown channel:  HeatTV.uk
Unknown channel:  LIVINGPlus2.uk
Unknown channel:  BritAsiaTV.uk
Unknown channel:  Sangat.uk
Unknown channel:  VenusTV.uk
Unknown channel:  StarJalsha.uk
Unknown channel:  SikhChannel.uk
Unknown channel:  AAJTAK.uk
Unknown channel:  UMPMovies.uk
Unknown channel:  Rishtey.uk
Unknown channel:  Investigationplus1.uk
Unknown channel:  MTVLiveHD.uk
Unknown channel:  BONTV.uk
Unknown channel:  FashionTV.nws
Unknown channel:  Iconcerts.fr
Unknown channel:  i24News.fr
Unknown channel:  CCTV.fr
Unknown channel:  
Unknown channel:  TrueDrama.uk
[EPGImport] imported 69786 events
[EPGImport] no Oudeis patch, load(.\epg_new.dat) required
reactor stopped
Done, data is in .\epg_new.dat
[EPGImport] #### Finished ####
 

So, I do not know what could be wrong.

 

Wily


~~Rytec Team~~
Xtrend ET6000 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: iptv epg #11 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 1 September 2013 - 17:09

Thank you very much, the information is very useful
but, I do not change the windows system

and yet I suspect that the EPG for IPTV
or even pass through the EPGImport
Like the script makeref

The presence of IPTV reference
causes errors

I will proceed
crossepg wring

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #12 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 2 September 2013 - 07:07

But still weird
Why not see crossepg National Geographic
Only one other Channels are emerging
tested with CrossEPG Explorer

Attached Files


Edited by maigais, 2 September 2013 - 07:08.

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #13 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 13 September 2013 - 23:15

Thank you, I have all managed to  ;) 

 

 

Microsoft Windows [Version 6.1.7601]
© Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены.

C:\Users\maigais>cd c:\python27

c:\Python27>python ..\python27\epg\OfflineImport.py \python27\epg\latvian.source
s.xml
[EPGImport] oudeis patch not detected, using epg.dat instead.
[EPGImport] failed to load C implementation, sorry
[EPGImport] nextImport, source= Shura.tv
[EPGImport] afterDownload c:/EPG/ready/tvprogram_ua_ru.gz
[EPGImport] afterChannelDownload None
[EPGImport] Parsing channels from 'C:\EPG\ready\ru.channels.xml.gz'
[XMLTVConverter] Enumerating event information
Unknown channel:  1p1-ua
Unknown channel:  1p1_int-ua
Unknown channel:  2p2-ua
Unknown channel:  news24-ua
Unknown channel:  5kanal-ua
Unknown channel:  8-kanal+4
Unknown channel:  amedia1
Unknown channel:  animal-hd
Unknown channel:  atr-ua
Unknown channel:  bbc-world
Unknown channel:  bloomberg
Unknown channel:  busines-ua
Unknown channel:  cnn
Unknown channel:  discov_showcase-hd
Unknown channel:  dobro-ua
Unknown channel:  english-club
Unknown channel:  enter-film-ua
Unknown channel:  france24
Unknown channel:  hustler-euvrope
Unknown channel:  ictv-ua
Unknown channel:  inv-discovery
Unknown channel:  maxxi-ua
Unknown channel:  mezzo-hd
Unknown channel:  mgm-int
Unknown channel:  mtv-hits
Unknown channel:  mtv-rocks
Unknown channel:  mtvuk-ua
Unknown channel:  mbu-ua
Unknown channel:  natgeo_hd
Unknown channel:  newsone-ua
Unknown channel:  o-tv-ua
Unknown channel:  playboy
Unknown channel:  prodengi
Unknown channel:  pro-vse-ua
Unknown channel:  qtv-ua
Unknown channel:  real-estate-ua
Unknown channel:  rumusic-ua
Unknown channel:  sky-uno-hd
Unknown channel:  star-ua
Unknown channel:  tv5monde
Unknown channel:  viasat_sport_baltic
Unknown channel:  zone-reality
Unknown channel:  zone-romantica
Unknown channel:  bank-tb-ua
Unknown channel:  gamma-ua
Unknown channel:  glas-ua
Unknown channel:  gumor_babai-ua
Unknown channel:  zagorzhizn
Unknown channel:  inter-ua
Unknown channel:  inter-plus-ua
Unknown channel:  k1-ua
Unknown channel:  k2-ua
Unknown channel:  kdrtrk-ua
Unknown channel:  kiev-ua
Unknown channel:  kiev-rus-ua
Unknown channel:  kto-est-kto
Unknown channel:  kultura-ukr-ua
Unknown channel:  m-1-ua
Unknown channel:  m-2-ua
Unknown channel:  malyatko-ua
Unknown channel:  mega-ua
Unknown channel:  menu-ua
Unknown channel:  moldova1
Unknown channel:  moya-dytyna-ua
Unknown channel:  ntv-nashekino
Unknown channel:  nlo-ua
Unknown channel:  novkan-ua
Unknown channel:  nta-ua
Unknown channel:  3dpanasonic
Unknown channel:  ntv-kinoklub
Unknown channel:  ntv-sport-online
Unknown channel:  ntn-ua
Unknown channel:  1ukraine-ua
Unknown channel:  1avto-ua
Unknown channel:  1delovoi-ua
Unknown channel:  ut-1-ua
Unknown channel:  enter-ua
Unknown channel:  citi-ua
Unknown channel:  pogodatv-ua
Unknown channel:  pravotv-ua
Unknown channel:  rada-ua
Unknown channel:  rentv-md
Unknown channel:  sontse-ua
Unknown channel:  sport1-ua
Unknown channel:  sport2-ua
Unknown channel:  stb-ua
Unknown channel:  strana-ua
Unknown channel:  tvi-ua
Unknown channel:  sto-ua
Unknown channel:  telecafe
Unknown channel:  tet-ua
Unknown channel:  tysa-ua
Unknown channel:  tonis-ua
Unknown channel:  era-ua
Unknown channel:  ubr-ua
Unknown channel:  trk-ukraina-ua
Unknown channel:  unian-ua
Unknown channel:  utr-ua
Unknown channel:  futbol-ukr-ua
Unknown channel:  futbol-plus-ua
Unknown channel:  hockey-ua
Unknown channel:  chernomorka-ua
Unknown channel:  chp-info-ua
Unknown channel:  eko-ua
[EPGImport] imported 97139 events
[EPGImport] no Oudeis patch, load(.\epg_new.dat) required
reactor stopped
Done, data is in .\epg_new.dat
[EPGImport] #### Finished ####

c:\Python27>

 

but there are a couple of questions

 

 

how to import multiple source.xml
  file epg.dat

 

and that the EPG importer supports the following formats

 

<channel id="557">1:0:1:143:5:FFFF:0:0:0:0:</channel> <!-- Ля Минор -->

 

 

<channel id="557">
<display-name lang="ru">Ля-Минор</display-name>
<icon src="http://www.teleguide...channel/557.gif" />
</channel>

 

 

 

<programme start="20130909050000 +0400" stop="20130909061500 +0400" channel="557">
<title lang="ru">К нам приехал...</title>
<category lang="ru">Развлекательные</category>
</programme>


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #14 doglover

  • Rytec EPG Team
  • 12,984 posts

+394
Excellent

Posted 14 September 2013 - 08:39

Multiple sources.  No problem.

 

In the sources file just add as many as you want:

 

 

<?xml version="1.0" encoding="latin-1"?>
<sources>

<source type="gen_xmltv" channels="C:\EPG\ready\rytec.channels-sat.xml">
    <description>Test</description>
    <url>c:\EPG\newswebgrab.xml</url>
</source>
<source type="gen_xmltv" channels="C:\EPG\ready\rytec.channels-cable.xml">
    <description>Rytec NL/BE</description>
    <url>c:/EPG/ready/rytecxmltvbenl.gz</url>
</source>

<source type="gen_xmltv" channels="C:\EPG\ready\rytec.channels.xml">
    <description>Rytec Ex-yu</description>
    <url>c:/EPG/ready/rytecxmltvexyu.gz</url>
</source>

</sources>
 

 

This

 

<channel id="557">1:0:1:143:5:FFFF:0:0:0:0:</channel> <!-- Ля Минор -->

 

should be OK.  However.  The namespace parameter is unusual.  Here 0 normally this something like EB0000 or C00000 or something like this.  I do not know what the epgimporter does with such a Namespace, as it is outside my experience.

 

<channel id="557">  is certainly OK.

Make sure however that all your files in the same code page.  If you use UTF-8 save your channels file also in UTF-8 format.

557 is the same coded in all code pages so that will not be a problem.  But é, ä and certainly Cyrillic characters in the channel names (epg references) will present a problem if not coded in the same code page.

 

Willy


~~Rytec Team~~
Xtrend ET6000 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: iptv epg #15 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 14 September 2013 - 08:45

Thank you very much, the one question I was Clarity

and the second question

How to run multiple source.xml

 

 

 

This kind of erases the previous epg.dat

python 
..\python27\epg\OfflineImport.py \python27\epg\latvian.sources.xml 
\python27\epg\iptv.sources.xml
 

 


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #16 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 14 September 2013 - 09:03

Thank you very much for your patience
everything is working very well
at least at the moment I can create the same epg.dat
for IPTV

 

00156.gif


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: iptv epg #17 doglover

  • Rytec EPG Team
  • 12,984 posts

+394
Excellent

Posted 14 September 2013 - 10:06

The file epg_new.dat is recreated each time as run the python program.

You have to get it out of the way (if you want to save it for further use) by copying to somewhere else.

 

Everything you define into one multiple source.xml ends up into the same epg_new.dat file.

 

So define everything into the same multiple.source.xml

 

Willy


~~Rytec Team~~
Xtrend ET6000 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: iptv epg #18 proline

  • Senior Member
  • 26 posts

0
Neutral

Posted 12 December 2013 - 11:58

I have all done written above.
In command line but I get:

 

C:\Users\admin>c:/EPGpython/Offlineimport.py poland.sources.xml
Traceback (most recent call last):
  File "C:\EPGpython\OfflineImport.py", line 68, in <module>
    importFrom(epgimport, xml)
  File "C:\EPGpython\OfflineImport.py", line 50, in importFrom
    sources = [ s for s in EPGConfig.enumSourcesFile(sourceXml, filter = None) ]
  File "C:\EPGpython\EPGConfig.py", line 106, in enumSourcesFile
    for event, elem in iterparse(open(sourcefile, 'rb')):
IOError: [Errno 2] No such file or directory: 'poland.sources.xml'

C:\Users\admin>
 

 


What did I do wrong?



Re: iptv epg #19 proline

  • Senior Member
  • 26 posts

0
Neutral

Posted 12 December 2013 - 12:06

Although I have definitely poland.sources.xml

 

bdae81e368a9.jpg

 

???



Re: iptv epg #20 proline

  • Senior Member
  • 26 posts

0
Neutral

Posted 12 December 2013 - 15:29

Last attempt

 

C:\Users\admin>cd c:/EPGpython

c:\EPGpython>Offlineimport.py poland.sources.xml
[EPGImport] oudeis patch not detected, using epg.dat instead.
[EPGImport] failed to load C implementation, sorry
[EPGImport] nextImport, source= Main
[EPGImport] afterDownload c:/EPG/mainepg.gz
[EPGImport] download failed: [Error 2] : 'c:/EPG/mainepg.gz'
[EPGImport] imported 0 events
reactor stopped
Done, data is in .\epg_new.dat
[EPGImport] #### Finished ####
Traceback (most recent call last):
  File "C:\EPGpython\OfflineImport.py", line 68, in <module>
    importFrom(epgimport, xml)
  File "C:\EPGpython\OfflineImport.py", line 55, in importFrom
    EPGImport.reactor.run()
  File "C:\EPGpython\OfflineImport.py", line 43, in run
    while self.r is not None:
AttributeError: FakeReactor instance has no attribute 'r'

c:\EPGpython>
 

What does that mean?






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users