Jump to content


proline

Member Since 12 Dec 2013
Offline Last Active 04 Jun 2019 16:50
-----

Posts I've Made

In Topic: iptv epg

21 March 2016 - 16:21

Another question. I have in my xml file such tags

    <title lang="ru">Лига справедливости: Война</title>
    <desc lang="ru">Произведено: США. В Готэм-Сити начинает происходить серия загадочных похищений. Жители города обеспокоены происходящим, ведь на записях городских видеокамер видно, что людей похищает кто-то очень похожий на Бэтмена. Однако на самом деле планете угрожает вторжение инопланетной расы Дарксайд. Супер-герои формируют Лигу справедливости,чтобы спасти планету от уничтожения.</desc>
    <category lang="ru">Детский</category>
    <credits>
      <director>Джей Олива</director>
      <actor>Шемар Мур</actor>
      <actor>Джейсон О&#39;Мара</actor>
      <actor>Алан Тьюдик</actor>
      <actor>Шон Эстин</actor>
      <actor>Зак Каллисон</actor>
      <actor>Кристофер Горам</actor>
      <actor>Джастин Кирк</actor>
      <actor>Мишель Монахэн</actor>
    </credits>
    <date>2014</date>

After overpacking in epg.dat they are gone. It remains only the description without actors and director.

Is it possible to fix this bug?


In Topic: iptv epg

21 March 2016 - 14:02

I have found!!!
I apologize :) :)


In Topic: iptv epg

21 March 2016 - 13:56

the problem is determined in my channels.xml
But where really? I do not find

 


In Topic: iptv epg

21 March 2016 - 12:04

Have tried tinker. Unfortunately unsuccessful.

 

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

c:\EPGpython>OfflineImport.py rus.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/ready/xmltv.xml.gz
[EPGImport] afterChannelDownload None
[EPGImport] Parsing channels from 'c:/EPG/ready/channels.xml.gz'
Traceback (most recent call last):
  File "C:\EPGpython\OfflineImport.py", line 68, in <module>
    importFrom(epgimport, xml)
  File "C:\EPGpython\OfflineImport.py", line 54, in importFrom
    epgimport.beginImport(longDescUntil = time.time() + (5*24*3600))
  File "C:\EPGpython\EPGImport.py", line 111, in beginImport
    self.nextImport()
  File "C:\EPGpython\EPGImport.py", line 120, in nextImport
    self.fetchUrl(self.source.url)
  File "C:\EPGpython\EPGImport.py", line 126, in fetchUrl
    self.afterDownload(None, filename, deleteFile=False)
  File "C:\EPGpython\EPGImport.py", line 191, in afterDownload
    self.afterChannelDownload(None, None)
  File "C:\EPGpython\EPGImport.py", line 210, in afterChannelDownload
    self.iterator = self.createIterator(filename)
  File "C:\EPGpython\EPGImport.py", line 129, in createIterator
    self.source.channels.update(self.channelFilter, filename)
  File "C:\EPGpython\EPGConfig.py", line 77, in update
    self.parse(filterCallback, self.urls[0])
  File "C:\EPGpython\EPGConfig.py", line 63, in parse
    ref = ref.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u0412' in position 14: ordinal not in range(256)

c:\EPGpython>

 

what am I doing wrong?