Can you see if it generated the xmltv.xml file? Could you share the logs? (kodi and sd4tvh)
Schedules Direct for Tvheadend addon
-
edit4ever -
January 10, 2017 at 9:47 PM -
Thread is Unresolved
-
-
Ok will do but i'm afraid you will need to tell me where to get the logs
-
If you're on an RPi - theres a folder called Logfiles. Just PM me the zip file.
-
Hi, sorry for being a noob here, but will your addon work on standalone libreelec running tvheadend, or does it actually need to be Kodi?
When I tried to install, it said there was a missing a file dependency script.module.dateutil.2.4.2
Currently having a nightmare. The Spectre & Meltdown patches released by Microsoft have hosed my Win 7, ServerWMC, Kodi, PLex HTPC. Wanted to transition to Ubuntu + Kodi, but my TBS6981 card is refusing to work nicely with any drivers & Tvheadend. The only system that works out of the box is Libreelec, but the EPG data is patchy. I used to run EPG123 with Schedules direct, so it would be good to be able to make use of my subscription again.
For what its worth, I'm running LibreElec 8.2.2 on a PC (i3 3225). Way overkill for libreelec i know.
-
joefez It's possible it's a python version error. Try installing this version:
script.module.sd4tvh-0.2.2-TEST.zip
BTW - LibreELEC is Kodi. It's just a "just enough operating system" designed to run only Kodi.
Also, depending on which version of tvheadend you are running, they now include a schedules direct grabber. You can install one of the overnight builds from CvH here:
-
joefez It's possible it's a python version error. Try installing this version:
Thanks edit4ever, I really appreciate your help. Unfortunately it still fails with the missing dependency error. I did download the latest nightly of tvheadend (11th Jan), but I couldnt see a schedules direct grabber? Maybe they pulled it from the build if it was buggy?
The OTA guide update is not so bad now it's had time to populate properly, but it would be better to have the schedules direct listings (at least while I'm still paying for the subscription!).
Thanks for your help though.
ps: I'm not quite sure what I was thinking with my Kodi / Libreelec comment. I should know better. I've been using XBMC since the OG xbox days and the Xecuter chip! I dont think staying up till 4am helped, trying to cobble a system together before the wife and kids woke up in the morning wondering why there was no TV or recorded shows
-
-
try installing the dependency manually and see what happens:
script.module.dateutil-2.4.2.zip
Thanks!
Installed the dependency as you suggested and your addon installed straightaway! Thank you very much for your time and coding skills! Much appreciated.
-
Now and again I stop getting updates.
Looking in the logs I've got
Code
Display More2018-01-22 14:34:49,350 root WARNING Key(s) not processed for Station: stationLogo 2018-01-22 14:34:49,351 root WARNING Key(s) not processed for Station: stationLogo 2018-01-22 14:34:49,414 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 112, in process schedule_hash_list = self._sd.get_schedule_hash_list(station_ids) File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/schedulesdirect.py", line 201, in get_schedule_hash_list schedule_hash_list = [(station_id, parse_date(date), result[station_id][date]["md5"]) for station_id in result for date in result[station_id]] File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/__init__.py", line 17, in parse_date return date(*map(int, d_str.split(u"-"))) TypeError: Required argument 'month' (pos 2) not found
-
looks like an error in the schedules direct data - missing correct date information for a certain station.
If you are in Great Britain - the station ids have been changed by provider - so I think lineups have to be reset.
If you're not in GB, hopefully schedules direct will fix the data error.
-
I am in GB.
Also I noticed my filters file include/excludes had emptied and I had New set to exclude so nothing was coming in anyway!
I /think/ I'm back up and running now.
Thanks!
-
Does sd4tvh run ok on OSMC, I have installed ok but comes up with error when trying to add channels
Thanks
Alimac01
-
I'm not sure as I don't have an OSMC setup. Can you provide a log to look at?
Also - I believe there is now a schedules direct grabber built into tvheadend - but I'm not sure if OSMC has updated the tvheadend server version they are using.
-
Is this likely just a temporary error with the ScheduleDirect data?
Code
Display More2018-05-29 14:19:16,782 sd4tvh INFO Adding programs to xmltv document... 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 132, in process program_lookup = self._sd.get_cached_programs(schedule_list.get_program_ids()) File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/schedulesdirect.py", line 190, in get_cached_programs return {program.program_id: program for program in self._cache.get_programs(program_ids)} File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/schedulesdirect.py", line 190, in <dictcomp> return {program.program_id: program for program in self._cache.get_programs(program_ids)} File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/cache.py", line 145, in get_programs for item in self.select_many(sql, batch): File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/cache.py", line 102, in select_many for item in result_iterator(cursor, fetch_size): File "/storage/.kodi/addons/script.module.sd4tvh/libschedulesdirect/__init__.py", line 48, in result_iterator results = cursor.fetchmany(fetch_size) sqlite3.OperationalError: Could not decode to UTF-8 column 'program_json' with text '{"genres":["Action","Drama","Scienc.e fiction"],"showType":"Feature Film","contentAdvisory":["Adult Language","Adult Situations","Violence"]
(I added the . in to Scienc.e as it seems to be a blocked word on this forum.
-
likely an error in some piece of downloaded data. You can try deleting the sdcache.db file in your sd4tvh userdata folder.
-
That sorted it, thanks!
Wish I'd tried that sooner, I ended up trying to filter channels one by one, and still didnt get it working.
-
thanks for the update - I should probably add a delete cache option in the settings to handle this kind of error.
Unfortunately due to other work - I haven't really worked on this project for some time...but it seems to be working for most people...so I guess there's no fires to put out.
-
thanks for the update - I should probably add a delete cache option in the settings to handle this kind of error.
Unfortunately due to other work - I haven't really worked on this project for some time...but it seems to be working for most people...so I guess there's no fires to put out.
Working great for me, Edit4ever. Been using it for a very long time, just set it and forget it.....
-