Kodi Community Forum
TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) (/showthread.php?tid=282157)



RE: TV Guide with built-in Addon browser (.ini free) - primaeval - 2016-08-20

(2016-08-20, 20:17)donbrew Wrote: I don't believe the day my old brain is having.

https://www.dropbox.com/s/zqi7zpme9dhsr3w/kodi.log?dl=0

Something very strange seems to have happened to your system.
I checked 0.0.67 on my LibreELEC 7.0.2 rpi and everything worked ok for me.

The error message is
Code:
File "/storage/.kodi/addons/script.tvguide.fullscreen/source.py", line 35, in <module>
from strings import *
ImportError: No module named strings

It is very strange because the strings module it says it can't find has been in the original TV Guide since the beginning of time.
Either something is corrupt on your system or one of your addons has deleted the strings module.

Have you got the original TV Guide or other forks installed to compare it against?


RE: TV Guide with built-in Addon browser (.ini free) - im85288 - 2016-08-20

Hi Guys, I've tweeked the sly skin a bit and sent a PR for the changes. The main changes included adding progress bars and showing the next image on the osd where the next plot used to be. The backgrounds for the EPG and the OSD were also changed a bit.


RE: TV Guide with built-in Addon browser (.ini free) - primaeval - 2016-08-20

(2016-08-20, 21:13)im85288 Wrote: Hi Guys, I've tweeked the sly skin a bit and sent a PR for the changes. The main changes included adding progress bars and showing the next image on the osd where the next plot used to be. The backgrounds for the EPG and the OSD were also changed a bit.

Thanks. There are some interesting additions there. The progress bar looks good. Smile

I'll check it works on android tomorrow before I merge it in.
I still can't get to the bottom of the android occasional black screen on play problem. I guess it is some z-buffer rounding error or something. Android can't do maths. Wink


RE: TV Guide with built-in Addon browser (.ini free) - im85288 - 2016-08-20

(2016-08-20, 21:19)primaeval Wrote: I still can't get to the bottom of the android occasional black screen on play problem. I guess it is some z-buffer rounding error or something. Android can't do maths. Wink

Cheers, I'm afraid I can't provide any knowledge for the Android bug as I do not have Android devices...sounds like a tough one to track down though Confused


RE: TV Guide with built-in Addon browser (.ini free) - donbrew - 2016-08-20

(2016-08-20, 20:41)primaeval Wrote:
(2016-08-20, 20:17)donbrew Wrote: I don't believe the day my old brain is having.

https://www.dropbox.com/s/zqi7zpme9dhsr3w/kodi.log?dl=0

Something very strange seems to have happened to your system.
I checked 0.0.67 on my LibreELEC 7.0.2 rpi and everything worked ok for me.

The error message is
Code:
File "/storage/.kodi/addons/script.tvguide.fullscreen/source.py", line 35, in <module>
from strings import *
ImportError: No module named strings

It is very strange because the strings module it says it can't find has been in the original TV Guide since the beginning of time.
Either something is corrupt on your system or one of your addons has deleted the strings module.

Have you got the original TV Guide or other forks installed to compare it against?

The original TVGuide works. The Pi crashed while running WebGrabplus a couple of times, last night it took 8 hours to complete after I un overclocked it; now running at 700, I don't know why that log says 900 it hasn't been set that high for a couple months.


RE: TV Guide with built-in Addon browser (.ini free) - primaeval - 2016-08-21

(2016-08-20, 22:52)donbrew Wrote:
(2016-08-20, 20:41)primaeval Wrote:
(2016-08-20, 20:17)donbrew Wrote: I don't believe the day my old brain is having.

https://www.dropbox.com/s/zqi7zpme9dhsr3w/kodi.log?dl=0

Something very strange seems to have happened to your system.
I checked 0.0.67 on my LibreELEC 7.0.2 rpi and everything worked ok for me.

The error message is
Code:
File "/storage/.kodi/addons/script.tvguide.fullscreen/source.py", line 35, in <module>
from strings import *
ImportError: No module named strings

It is very strange because the strings module it says it can't find has been in the original TV Guide since the beginning of time.
Either something is corrupt on your system or one of your addons has deleted the strings module.

Have you got the original TV Guide or other forks installed to compare it against?

The original TVGuide works. The Pi crashed while running WebGrabplus a couple of times, last night it took 8 hours to complete after I un overclocked it; now running at 700, I don't know why that log says 900 it hasn't been set that high for a couple months.

I had to un-overclock my LibreELEC rpi too. I had some wierd sound lockup on Kodi startup. I used to be able to run at the top overclock settings with OpenELEC.

Do you get the same error message about the strings module now?

[EDIT] If Webgrabplus took 8 hours, perhaps there was a conflict between it writing the xmltv file and TV Guide Fullscreen reading the xmltv file at the same time.


RE: TV Guide with built-in Addon browser (.ini free) - donbrew - 2016-08-21

At this time I still have 67 and it still won't start up log shows the same error.

And now the Pi crashed.

Reboot now shows 69 available, updated.

I am starting to think my Pi is dying; it is incredibly slow at 700, Minutes to load.

The guide would not load the xmltv from a remote source, Kodi crashed while loading it local. Worked on reboot.

On Windows still on 67 shows no updates available? Windows has no problem with the xmltv file from either source.


kodi.log
kodi crash.log


RE: TV Guide with built-in Addon browser (.ini free) - primaeval - 2016-08-21

(2016-08-21, 15:43)donbrew Wrote: At this time I still have 67 and it still won't start up log shows the same error.

And now the Pi crashed.

Reboot now shows 69 available, updated.

I am starting to think my Pi is dying; it is incredibly slow at 700, Minutes to load.

The guide would not load the xmltv from a remote source, Kodi crashed while loading it local. Worked on reboot.

On Windows still on 67 shows no updates available? Windows has no problem with the xmltv file from either source.

kodi.log
kodi crashlog

You have a deadlock there because TV Guide and TV Guide Fullscreen are trying to access the same xmltv file at the same time.
See "import lockis held by another thread"

Code:
09:00:29 108.351593 T:1371534240   ERROR:   File "/storage/.kodi/addons/script.tvguide/source.py", line 346, in _updateChannelAndProgramListCaches
09:00:29 108.402603 T:1371534240   ERROR:     for item in self.source.getDataFromExternal(date, progress_callback):
09:00:29 108.403320 T:1371534240   ERROR:   File "/storage/.kodi/addons/script.tvguide/source.py", line 909, in parseXMLTV
09:00:29 108.420723 T:1371534240   ERROR:     result = Program(channel, elem.findtext('title'), self.parseXMLTVDate(elem.get('start')),
09:00:29 108.421547 T:1371534240   ERROR:   File "/storage/.kodi/addons/script.tvguide/source.py", line 888, in parseXMLTVDate
09:00:29 108.541145 T:1371534240   ERROR:     t = time.strptime(dateString, '%Y%m%d%H%M%S')
09:00:29 108.541840 T:1371534240   ERROR: ImportError: Failed to import _strptime because the import lockis held by another thread.
09:00:31 110.601761 T:1774187424  NOTICE: [script.tvguide] Scheduling notifications
09:00:41 120.754219 T:1522529184   ERROR: EXCEPTION: Unknown addon id 'plugin.video.meta'.
09:01:06 145.815186 T:1522529184   ERROR: Traceback (most recent call last):
09:01:06 145.816467 T:1522529184   ERROR:   File "/storage/.kodi/addons/script.tvguide.fullscreen/source.py", line 371, in _updateChannelAndProgramListCaches
09:01:08 147.862030 T:1522529184   ERROR:     for item in self.source.getDataFromExternal(date, progress_callback):
09:01:08 147.862656 T:1522529184   ERROR:   File "/storage/.kodi/addons/script.tvguide.fullscreen/source.py", line 1128, in parseXMLTV
09:01:08 147.870255 T:1522529184   ERROR:     result = Program(channel, elem.findtext('title'), self.parseXMLTVDate(elem.get('start')),
09:01:08 147.872467 T:1522529184   ERROR:   File "/storage/.kodi/addons/script.tvguide.fullscreen/source.py", line 1048, in parseXMLTVDate
09:01:09 147.894714 T:1522529184   ERROR:     t_tmp = datetime.datetime.strptime(dateString, '%Y%m%d%H%M%S')
09:01:09 147.895432 T:1522529184   ERROR: ImportError: Failed to import _strptime because the import lockis held by another thread.

Sometimes you need to just update my repo by right clicking on it. Other repo updates may be blocking it.

On the rpi I make a very limited channel list with no more than a day of programs.
I was fed up with waiting minutes for the premade ones.
It is one reason I made Webgrab+Plus Configurator to make a manageable list.


RE: TV Guide with built-in Addon browser (.ini free) - donbrew - 2016-08-21

On my Pi i only do 2 days 84 channels.

If tvguide is not running, why would it be conflicting? That was 5-10 minutes after tvguide was closed.

Strange how 2 instances of tvguide fullscreen can use the same xmltv at the same time?

I have been having some odd (to me) problems saving channels2correct.xml because "check that it is open in another program". I can't find any other program using it, long after webgrab has terminated.

It seems to be working now after another reboot.

On windows I just updated the repo, still no update from 67. done 3 times now. fourth time it updated.


RE: TV Guide with built-in Addon browser (.ini free) - primaeval - 2016-08-21

(2016-08-21, 16:16)donbrew Wrote: On my Pi i only do 2 days 84 channels.

If tvguide is not running, why would it be conflicting? That was 5-10 minutes after tvguide was closed.

Strange how 2 instances of tvguide fullscreen can use the same xmltv at the same time?

I have been having some odd (to me) problems saving channels2correct.xml because "check that it is open in another program". I can't find any other program using it, long after webgrab has terminated.

It seems to be working now after another reboot.

On windows I just updated the repo, still no update from 67. done 3 times now. fourth time it updated.

The TV Guides have a service running in the background to reload the xmltv.
Look under Settings \ Startup

If you get the timezone field right in the webgrab ini files you shouldn't need the channel correction at all.

I have about 40 channels for one day on the rpi but it is a first generation one.

Try uninstalling my repo and reinstalling it if all else fails.

The LibreELEC webgrab service runs every 6 hours. So if your update took 8 hours the files must have still been open from the first run.


RE: TV Guide with built-in Addon browser (.ini free) - donbrew - 2016-08-21

I just tried a "mild" overclock, now it's stuck in a reboot cycle.
You would not belive the physical labor I have to do to put the SD card in the windows machine, so that is on hold.


RE: TV Guide with built-in Addon browser (.ini free) - primaeval - 2016-08-21

(2016-08-21, 16:54)donbrew Wrote: I just tried a "mild" overclock, now it's stuck in a reboot cycle.
You would not belive the physical labor I have to do to put the SD card in the windows machine, so that is on hold.

I believe you. I embedded one of my rpis in a rack mount box with a nice dac. It takes about 30 screws and some dislocated joints to get the sdcard out. Smile

If you start costing your time at standard developer rates, cheap hardware starts to get very very expensive. Smile


RE: TV Guide with built-in Addon browser (.ini free) - MikeKL - 2016-08-21

(2016-08-21, 16:22)primaeval Wrote: The LibreELEC webgrab service runs every 6 hours. So if your update took 8 hours the files must have still been open from the first run.
@donbrew

I Assume your using LibreELEC and latest version of the WebGrab+Plus service add-on on your pi? (WebGrab+Plus, Version 8.0.102)

Be aware that with every re-boot of pi I was noticing that particular webgrabplus service running immediately after a re-boot appears to always incorrectly recording start time and thus finish time could/would indicate hours/days when in actual fact the update (in my case) was actually taking 6-7 mins. (All channels set for default "i" Incremental update)

Never thought to comment in LibreELEC forum about this as thought issue partly due to my specific regular updating of OS to latest milhouse nightly updates of LibreELEC (which require a re-boot)

Six hours later, when standard service job runs it would always correctly record start time and overall length.
(Issue only occuring after a reboot of pi)

In my case I have now disabled all automated service starts of LibreELEC webgrabplus and currently run a cron job using the webgrabplus.start command once a day.


RE: TV Guide with built-in Addon browser (.ini free) - primaeval - 2016-08-21

(2016-08-21, 17:25)MikeKL Wrote:
(2016-08-21, 16:22)primaeval Wrote: The LibreELEC webgrab service runs every 6 hours. So if your update took 8 hours the files must have still been open from the first run.
@donbrew

I Assume your using LibreELEC and latest version of the WebGrab+Plus service add-on on your pi? (WebGrab+Plus, Version 8.0.102)

Be aware that with every re-boot of pi I was noticing that particular webgrabplus service running immediately after a re-boot appears to always incorrectly recording start time and thus finish time could/would indicate hours/days when in actual fact the update (in my case) was actually taking 6-7 mins. (All channels set for default "i" Incremental update)

Never thought to comment in LibreELEC forum about this as thought issue partly due to my specific regular updating of OS to latest milhouse nightly updates of LibreELEC (which require a re-boot)

Six hours later, when standard service job runs it would always correctly record start time and overall length.
(Issue only occuring after a reboot of pi)

In my case I have now disabled all automated service starts of LibreELEC webgrabplus and currently run a cron job using the webgrabplus.start command once a day.

I don't get a chance to experiment on my LibreELEC rpi much because the kids use it for their tv shows.

If you can understand this page about system.d timers you could experiment with the webgrab schedule.
https://wiki.archlinux.org/index.php/Systemd/Timers

Look at the OnCalendar function halfway down the page.

The file you want to modify is:
/storage/.kodi/addons/service.webgrabplus/system.d/service.webgrabplus.service


RE: TV Guide with built-in Addon browser (.ini free) - MikeKL - 2016-08-21

This is current content of service.webgrabplus.service which starts on boot and then every 21600 seconds (six hours) after that :-

Quote:[Unit]
Description=WebGrab+Plus
Documentation=http://www.webgrabplus.com/
After=network.target
Requires=network.target

[Service]
ExecStart=/bin/sh /storage/.kodi/addons/service.webgrabplus/bin/webgrabplus.start
Restart=always
RestartSec=21600

[Install]
WantedBy=kodi.target

I understand from page you pointed me to that I would need to create an additonal service.webgrabplus.timer file (in same folder?)
i.e. something similar to as follows :-

Quote:[Unit]
Description=Run WebGrab+Plus daily

[Timer]
OnCalendar=*-*-* 03:00:00
Persistent=true

[Install]
WantedBy=timers.target

But currently not sure what to do to start timer and how it actually interacts with service.webgrabplus.service and what I need to edit in orginal service file etc.

Will keep reading/studying BlushWink