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 Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-22

(2016-11-22, 21:26)Drt1989 Wrote: ^^^

It looks like you might be trying to load the tv guide while it is doing a background update.
You can turn on a notification to tell you when it has finished.

The conflict is that the update uses a temp file in the addon_data folder and 2 processes are probably trying to access it at the same time.

If it does it every time then there is another bug.

I spent a lot of time last week with the background update procedure and I didn't manage to work out a bullet-proof solution to these conflicts. It looks like you found one.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-22

@Drt1989 Try version 0.0.197.

I've put some exception handling code in around copying the temp file to the final destination file.
If the file is in use it should just carry on now and not bomb out with an error.

Let me know if that works.

[EDIT] 0.0.198 should be better.
I've added a database lock file which should prevent conflicts if I'm lucky and have found the right spot. Wink


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - GriffeyJuni0r - 2016-11-22

Is the Play Last Channel feature working? I tried pressing '0' when playing a channel directly after another one, and nothing happened

The gui.py line for this mapping looks like it's still in progress (I'm on Windows, Jarvis), but I just wanted to double check:

elif action.getId() == [REMOTE_0]: #TODO find libreelec key
self._playLastChannel()


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-23

(2016-11-22, 23:47)GriffeyJuni0r Wrote: Is the Play Last Channel feature working? I tried pressing '0' when playing a channel directly after another one, and nothing happened

The gui.py line for this mapping looks like it's still in progress (I'm on Windows, Jarvis), but I just wanted to double check:

elif action.getId() == [REMOTE_0]: #TODO find libreelec key
self._playLastChannel()

I thought it used to but I'm not sure now you mention it.

The other number keys still work for the Lists.

I tried using 61488 which is the number that gets read by the Keymap Editor addon for 0. Nothing.

If you find the right key please let me know and I'll add it it.

In TV mode you can still press Left then Enter to get to the last channel. One more keypress but it works.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - GriffeyJuni0r - 2016-11-23

(2016-11-23, 00:23)primaeval Wrote:
(2016-11-22, 23:47)GriffeyJuni0r Wrote: Is the Play Last Channel feature working? I tried pressing '0' when playing a channel directly after another one, and nothing happened

The gui.py line for this mapping looks like it's still in progress (I'm on Windows, Jarvis), but I just wanted to double check:

elif action.getId() == [REMOTE_0]: #TODO find libreelec key
self._playLastChannel()

I thought it used to but I'm not sure now you mention it.

The other number keys still work for the Lists.

I tried using 61488 which is the number that gets read by the Keymap Editor addon for 0. Nothing.

If you find the right key please let me know and I'll add it it.

In TV mode you can still press Left then Enter to get to the last channel. One more keypress but it works.

Yeah I couldn't find it either. Ah well, just re-mapped it to a different action for now - Thanks!


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-23

(2016-11-23, 07:08)GriffeyJuni0r Wrote:
(2016-11-23, 00:23)primaeval Wrote:
(2016-11-22, 23:47)GriffeyJuni0r Wrote: Is the Play Last Channel feature working? I tried pressing '0' when playing a channel directly after another one, and nothing happened

The gui.py line for this mapping looks like it's still in progress (I'm on Windows, Jarvis), but I just wanted to double check:

elif action.getId() == [REMOTE_0]: #TODO find libreelec key
self._playLastChannel()

I thought it used to but I'm not sure now you mention it.

The other number keys still work for the Lists.

I tried using 61488 which is the number that gets read by the Keymap Editor addon for 0. Nothing.

If you find the right key please let me know and I'll add it it.

In TV mode you can still press Left then Enter to get to the last channel. One more keypress but it works.

Yeah I couldn't find it either. Ah well, just re-mapped it to a different action for now - Thanks!

It was a bug. It should work in 0.0.199.

The code should have used the word in to compare the key like this:
Code:
elif action.getId() in [REMOTE_0]: #TODO find libreelec key
            self._playLastChannel()



RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Drt1989 - 2016-11-23

(2016-11-22, 22:16)primaeval Wrote: @Drt1989 Try version 0.0.197.

I've put some exception handling code in around copying the temp file to the final destination file.
If the file is in use it should just carry on now and not bomb out with an error.

Let me know if that works.

[EDIT] 0.0.198 should be better.
I've added a database lock file which should prevent conflicts if I'm lucky and have found the right spot. Wink

Sorry I am still getting Errors,

Code:
13:26:27 T:501824   ERROR: C:\Users\Work\AppData\Roaming\Kodi\addons\script.module.requests\lib\requests\packages\urllib3\util\ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
                                              InsecurePlatformWarning
13:26:57 T:499324 WARNING: CPythonInvoker(12): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
13:26:57 T:499324  NOTICE: C:\Users\Work\AppData\Roaming\Kodi\userdata\addon_data\script.tvguide.fullscreen\UK.xml.tmp
13:29:19 T:487776 WARNING: CPythonInvoker(13): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
13:29:19 T:487776  NOTICE: C:\Users\Work\AppData\Roaming\Kodi\userdata\addon_data\script.tvguide.fullscreen\UK.xml.tmp
13:29:20 T:488320 WARNING: CPythonInvoker(14): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
13:29:20 T:488320  NOTICE: C:\Users\Work\AppData\Roaming\Kodi\userdata\addon_data\script.tvguide.fullscreen\UK.xml.tmp
13:29:24 T:486584 WARNING: CPythonInvoker(15): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
13:29:25 T:486584  NOTICE: C:\Users\Work\AppData\Roaming\Kodi\userdata\addon_data\script.tvguide.fullscreen\UK.xml.tmp
13:29:46 T:486584   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'source.SourceNotConfiguredException'>
                                            Traceback (most recent call last):
                                              File "C:\Users\Work\AppData\Roaming\Kodi\addons\script.tvguide.fullscreen/backup.py", line 36, in <module>
                                                database = source.Database()
                                              File "C:\Users\Work\AppData\Roaming\Kodi\addons\script.tvguide.fullscreen\source.py", line 148, in __init__
                                                self.source = instantiateSource(force)
                                              File "C:\Users\Work\AppData\Roaming\Kodi\addons\script.tvguide.fullscreen\source.py", line 2693, in instantiateSource
                                                return XMLTVSource(ADDON,force)
                                              File "C:\Users\Work\AppData\Roaming\Kodi\addons\script.tvguide.fullscreen\source.py", line 1544, in __init__
                                                raise SourceNotConfiguredException()
                                            SourceNotConfiguredException
                                            -->End of Python script error report<--

I've checked and I have background update service switched to off. I am attempting to run this before opening the guide.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-23

(2016-11-23, 14:33)Drt1989 Wrote: ^^^

That looks like you got the error when trying to backup the channel mapping.

Have you got the channels and programs working in the epg window?

I think I might need to see what is in your settings.xml file, the full log and a listing of the addon_data folder.
You can pm them if you want so they don't appear in public.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - gillmacca - 2016-11-23

Just testing this out, and loving it. Much better than my current tv guide. Great Work.

I have the tv guide set to show 10 channels, when it goes to the next page it says' loading data from external source'. Is this necessary, as the guide has already imported the xml file. Other tv guides load the next page up straight away

edit: ignore this. after a few minutes, the page change was instant


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-23

(2016-11-23, 15:37)gillmacca Wrote: Just testing this out, and loving it. Much better than my current tv guide. Great Work.

I have the tv guide set to show 10 channels, when it goes to the next page it says' loading data from external source'. Is this necessary, as the guide has already imported the xml file. Other tv guides load the next page up straight away

edit: ignore this. after a few minutes, the page change was instant

I'm glad you like it.

It does do a lot more in the background than most guides: categories filtering, addons.ini folder scraping, list view index making, thelogodb.com logo finding, tvdb/imdb program image finding, background xmltv updating and making the tea Wink.

Make sure you have "Refresh on Start" turned off, unless you want to force a reset.

Don't turn set "File Download Interval" to "every start".

It will also build a database index in the background at some point to speed up the Listings, Now, Next etc views.

It all takes time to find everything on the interwebs and put them in the right place in your addon_data folder.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - gillmacca - 2016-11-23

(2016-11-23, 17:38)primaeval Wrote:
(2016-11-23, 15:37)gillmacca Wrote: Just testing this out, and loving it. Much better than my current tv guide. Great Work.

I have the tv guide set to show 10 channels, when it goes to the next page it says' loading data from external source'. Is this necessary, as the guide has already imported the xml file. Other tv guides load the next page up straight away

edit: ignore this. after a few minutes, the page change was instant

I'm glad you like it.

It does do a lot more in the background than most guides: categories filtering, addons.ini folder scraping, list view index making, thelogodb.com logo finding, tvdb/imdb program image finding, background xmltv updating and making the tea Wink.


Make sure you have "Refresh on Start" turned off, unless you want to force a reset.

Don't turn set "File Download Interval" to "every start".

It will also build a database index in the background at some point to speed up the Listings, Now, Next etc views.

It all takes time to find everything on the interwebs and put them in the right place in your addon_data folder.

2 main reasons that this will become my main tv guide overs others, is the ability to create categories and being able to search the TV guide. These 2 features seem to be missing from most TV guides


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-23

(2016-11-23, 18:05)gillmacca Wrote: 2 main reasons that this will become my main tv guide overs others, is the ability to create categories and being able to search the TV guide. These 2 features seem to be missing from most TV guides

You probably know this:
You can do those if you use the Kodi TV PVR service but you need a fixed m3u list of channels.
If you rely on addons like the rest of us then TV Guide Fullscreen is probably the closest to the Kodi PVR functionality, only better of course. Wink


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Hinkel - 2016-11-24

Seems it's only happening to me I've only seen the @gillmacca comments and it looks it's solved. After new functions were implemented in version 0.194, I could no longer run the guide normally. It takes more than 10 min to load and then each page loads again. Plus my whole system slowed down and crashed.
Libreelec Linux 64bit, skin Titan JarvisBeta .92 and tested in Confluence.

https://drive.google.com/file/d/0B5R-eUSBSipvQ1RoRU15ZXZWNU0/view?usp=drivesdk

https://drive.google.com/file/d/0B5R-eUSBSipvaExqZk1BeVZQUVU/view?usp=drivesdk


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-24

(2016-11-24, 17:15)Hinkel Wrote: Seems it's only happening to me I've only seen the @gillmacca comments and it looks it's solved. After new functions were implemented in version 0.194, I could no longer run the guide normally. It takes more than 10 min to load and then each page loads again. Plus my whole system slowed down and crashed.
Libreelec Linux 64bit, skin Titan JarvisBeta .92 and tested in Confluence.

https://drive.google.com/file/d/0B5R-eUSBSipvQ1RoRU15ZXZWNU0/view?usp=drivesdk

https://drive.google.com/file/d/0B5R-eUSBSipvaExqZk1BeVZQUVU/view?usp=drivesdk

Check you are up to 0.0.199, "Refresh on Start" is off and "File download interval" is more than "every start".

Test it with the Background Service off to start with.

It that doesn't fix it, try a Settings \ Reset Database \ EPG Data Reset.

If you're still having problems send me a full log and I'll see what is wrong.

There have been a few teething troubles with the Background Update Service.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2016-11-25

version 0.0.200
- Listings Views speed-up
- Authentication option in Settings \ Optional
- Menu buttons re-ordered (program, scheduler, channels, actions)

Listings Views should be almost instantaneous now.
Remote 1: Channel Listing
Remote 2: Now View
Remote 3: Next View
etc

Optional Authentication if you want to keep your xmltv files to yourself. Remember: Sharing is Caring. Wink