Schedules Direct for Tvheadend addon
#16
RPi 8.0.2, it seems to be working as expected, I can add/remove channels and lineups

here is a new log for you

I'm using zip - 98008 - dish network

Code:
Traceback (most recent call last):
  File "/storage/.kodi/addons/script.module.sd4tvh/sd4tvh.py", line 407, in <module>
    main()
  File "/storage/.kodi/addons/script.module.sd4tvh/sd4tvh.py", line 403, in main
    app.process()
  File "/storage/.kodi/addons/script.module.sd4tvh/sd4tvh.py", line 106, in process
    cf = FileChannelFilter(config_path=self._filter_path, lineup_map_list=lineup_map_list)
  File "/storage/.kodi/addons/script.module.sd4tvh/utils/channelfilters.py", line 31, in __init__
    self._save_config(config_path)
  File "/storage/.kodi/addons/script.module.sd4tvh/utils/channelfilters.py", line 93, in _save_config
    self._config.write(fp)
  File "/usr/lib/python2.7/ConfigParser.py", line 412, in write
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 15: ordinal not in range(128)
Reply
#17
This indicates a strange character in the channel lineup. Can you let me know what lineups you are using so I can try to see what may be happening?

I had this issue with my zap2xml addon with a european channel that had a letter in the channel number!
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
#18
(2017-09-29, 01:22)edit4ever Wrote: This indicates a strange character in the channel lineup. Can you let me know what lineups you are using so I can try to see what may be happening?

I had this issue with my zap2xml addon with a european channel that had a letter in the channel number!

https://pastebin.com/raw/QRV3yrJ7

ya maybe that's why zap2xml wasn't working fully for me lol
Reply
#19
OK - I'll grab that list and see if I have the same issue.

BTW - any reason you're grabbing both the HD and SD version of the same channel?
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
#20
Hey I got the addon working fine, was wondering if you got automapping working correctly? Was it fixed in a nightly build? Just wanna save some time with 500+ channels
Reply
#21
Automapping was fixed for OTA channels - not sure what it will do with cable channels. May work in the US if the cable company has the channel number associated with the schedules direct info - not sure.

It was fixed with this commit: https://tvheadend.org/projects/tvheadend...bf665ccec6

The patch they used can be found in this forum: https://tvheadend.org/issues/4615

I think the recent tvh overnights have the patch included. I'm not near my test systems for a few days - but if you run a recent tvh build or update from the latest overnight it should have it.
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
#22
(2017-10-12, 20:48)snapple Wrote: Hey I got the addon working fine, was wondering if you got automapping working correctly? Was it fixed in a nightly build? Just wanna save some time with 500+ channels

Yes, I installed the latest nightly and see some issues fixed.

Additionally I believe I have some weird stuff conflicting, I'm getting a memory error. I seem to mess some things up but not sure where

Code:
2017-10-12 21:58:09,495 sd4tvh INFO     Getting schedule hashes...
Traceback (most recent call last):
  File "/storage/.kodi/addons/script.module.sd4tvh/sd4tvh.py", line 407, in <module>
    main()
  File "/storage/.kodi/addons/script.module.sd4tvh/sd4tvh.py", line 403, in main
    app.process()
  File "/storage/.kodi/addons/script.module.sd4tvh/sd4tvh.py", line 114, in process
    self._sd.refresh_cache(schedule_hash_list)
  File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/schedulesdirect.py", line 168, in refresh_cache
    changed_schedule_list = self.cache_schedules(schedule_hash_set)
  File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/schedulesdirect.py", line 225, in cache_schedules
    schedules_response = api.get_schedules(self._token, [{"stationID": station_id, "date": schedules_request[station_id]} for station_id in schedules_request])
  File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/api.py", line 136, in get_schedules
    return _post("schedules", token, stations)
  File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/api.py", line 163, in _post
    response = _get_response(request)
  File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/api.py", line 236, in _get_response
    buf = StringIO.StringIO(response.read())
  File "/usr/lib/python2.7/socket.py", line 363, in read
MemoryError
Reply
#23
You should be able to uninstall and then reinstall the sd4tvh addon to see if that fixes any code changes you may have made.

It shouldn't delete your user settings for the addon unless you remove the ...userdata/script.module/sd4tvh folder.
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
#24
(2017-10-13, 15:57)edit4ever Wrote: You should be able to uninstall and then reinstall the sd4tvh addon to see if that fixes any code changes you may have made.

It shouldn't delete your user settings for the addon unless you remove the ...userdata/script.module/sd4tvh folder.

hmm I tried that and same issue, I reinstalled tvh too. Really don't wanna have a fresh start but I will see if I can figure what it is
Reply
#25
Just for testing purposes - can you lower the number of days you're trying to download? If it is set to 14, can you make it 7 and see if it runs? Or just try a single day?

The error indicates you ran out of memory - which is strange as it would take a lot of data for that to happen - but maybe we can try a couple of tests.

BTW - What hardware configuration are you running?
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
#26
(2017-10-14, 17:08)edit4ever Wrote: Just for testing purposes - can you lower the number of days you're trying to download?  If it is set to 14, can you make it 7 and see if it runs?  Or just try a single day?

The error indicates you ran out of memory - which is strange as it would take a lot of data for that to happen - but maybe we can try a couple of tests.

BTW - What hardware configuration are you running?
Raspi3 running libreelec

It's already set to 1 day and my TV_grab isn't working either wtf
Reply
#27
mmm....if grab isn't working - is log showing an error with login? Or is the tv_grab not even showing up or is it not running?
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
#28
(2017-10-16, 21:42)edit4ever Wrote: mmm....if grab isn't working - is log showing an error with login?  Or is the tv_grab not even showing up or is it not running?

tv_grab randomly started working but sd4tvh isn't working for some reason. The login is perfectly fine, I get that memory error for sd4tvh

Code:
2017-10-17 11:17:07.712 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: grab /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file
2017-10-17 11:17:07.743 spawn: Executing "/storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file"
2017-10-17 11:17:33.175 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: grab took 25 seconds
2017-10-17 11:17:33.799 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file: parse took 0 seconds
2017-10-17 11:17:33.800 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  channels   tot=  612 new=    0 mod=    0
2017-10-17 11:17:33.800 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  brands     tot=    0 new=    0 mod=    0
2017-10-17 11:17:33.800 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  seasons    tot=    0 new=    0 mod=    0
2017-10-17 11:17:33.800 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  episodes   tot= 1182 new= 1127 mod= 1127
2017-10-17 11:17:33.800 xmltv: /storage/.kodi/addons/service.tvheadend42/bin/tv_grab_file:  broadcasts tot= 1182 new= 1127 mod= 1127
2017-10-17 11:17:33.800 xmltv: /storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh: grab /storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh
2017-10-17 11:17:33.816 spawn: Executing "/storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh"
2017-10-17 11:19:01.762 xmltv: /storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh: grab took 88 seconds
2017-10-17 11:19:01.801 xmltv: /storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh: parse took 0 seconds
2017-10-17 11:19:01.801 xmltv: /storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh:  channels   tot=  104 new=    0 mod=    0
2017-10-17 11:19:01.801 xmltv: /storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh:  brands     tot=    0 new=    0 mod=    0
2017-10-17 11:19:01.801 xmltv: /storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh:  seasons    tot=    0 new=    0 mod=    0
2017-10-17 11:19:01.801 xmltv: /storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh:  episodes   tot=    0 new=    0 mod=    0
2017-10-17 11:19:01.801 xmltv: /storage/.kodi/addons/script.module.sd4tvh/bin/tv_grab_sd4tvh:  broadcasts tot=    0 new=    0 mod=    0
Reply
#29
That log shows 104 channels downloaded for sd4tvh. That likely means that they have not been connected to teh epg source for the channel. It wouldn't show the 104 channels unless it had generaterd the xmltv.xml file.

Double check that the channels epg source are setup.
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply
#30
(2017-10-18, 04:46)edit4ever Wrote: That log shows 104 channels downloaded for sd4tvh. That likely means that they have not been connected to teh epg source for the channel. It wouldn't show the 104 channels unless it had generaterd the xmltv.xml file.

Double check that the channels epg source are setup.

Yeah I have atleast 10 channels set to sd4tvh and it wasn't pulling @_@ my raspi been weird lately I'm gon work on it a bit to get this working finally
Reply

Logout Mark Read Team Forum Stats Members Help
Schedules Direct for Tvheadend addon1