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. ;) - coremailrx8 - 2018-04-11

(2018-04-10, 08:19)primaeval Wrote: version 0.0.386
- Settings\Source\Convert & to &

This should fix the PS Vue incorrect xml problem.
@coremailrx8 could you check if it works.

It only works if the data source in Lab2 is the default setting of xmltv.
It won't work, error:
  
Code:
17:29:02.686 T:6736 ERROR: File "C:\KodiTest\portable_data\addons\script.tvguide.fullscreen\source.py", line 522, in _updateChannelAndProgramListCaches
17:29:02.687 T:6736 ERROR: for item in self.source.getDataFromExternal(date, ch_list, progress_callback):
17:29:02.687 T:6736 ERROR: File "C:\KodiTest\portable_data\addons\script.tvguide.fullscreen\source.py", line 1930, in getDataFromExternal
17:29:02.687 T:6736 ERROR: for v in chain(self.getDataFromExternal2(self.xmltvFile, date, ch_list, progress_callback)):
17:29:02.687 T:6736 ERROR: File "C:\KodiTest\portable_data\addons\script.tvguide.fullscreen\source.py", line 2017, in parseXMLTV
17:29:02.687 T:6736 ERROR: for event, elem in context:
17:29:02.687 T:6736 ERROR: File "C:\KodiTest\system\python\Lib\xml\etree\ElementTree.py", line 1271, in next
17:29:02.688 T:6736 ERROR: raise e
17:29:02.688 T:6736 ERROR: ParseError: not well-formed (invalid token): line 199, column 45



RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - coremailrx8 - 2018-04-11

Sorry, my bad. I didn't enable the option.

So it does retrieves the EPG, but the first column, where the channels names are supposed to be, are blank.


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

(2018-04-11, 02:36)coremailrx8 Wrote: Sorry, my bad. I didn't enable the option.

So it does retrieves the EPG, but the first column, where the channels names are supposed to be, are blank.
 The first column of what?

All this bodge does is add an amp; to any & that isn't followed by amp; in the xmltv file.
Code:
data = re.sub('&(?!amp; )','&',data)
https://github.com/primaeval/script.tvguide.fullscreen/commit/db97438452330e671a9893c768fc35f45c500aff#diff-078f5f54ae7748ab33591d30e6b944b9R1835

[EDIT] If you mean where the channel logos go in the main epg then you might need to do some level of database reset.
Old channels are kept unless something changes. That is just the way it has always been before my time.

Try this for one restart only.
Settings\Source\Reset on Start

If not try
Settings\Reset Database

The first option will only clear the epg.
The second will clear your addons.ini etc.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Doctor Eggs - 2018-04-11

(2018-04-04, 17:32)mzup Wrote:
(2018-04-04, 17:24)primaeval Wrote: Is the actual exit.on.back setting in settings.xml changing?

This is the bit of code that closes TVGF if it is set to true and play.minimized is false (play in the small window).
https://github.com/primaeval/script.tvguide.fullscreen/blob/80337aed991572111d33796bb6041a449a0a4ecb/gui.py#L969
 Yes it does change in the xml file.  It is not a big deal to me. I just wanted to point it out.    
I have just had my settings reverted back to a previous setting. I noticed that some of the settings are getting saved in the source.db and I wonder if that causes some sort of conflict where it overwrites the settings.xml at some point.

Can you try changing your TVGF settings, open TVGF to make sure they are there, exit TVGF and then exit Kodi. Open things back up and verify that the settings are the same and hopefully that fixes it.


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

(2018-04-11, 14:59)Doctor Eggs Wrote:
(2018-04-04, 17:32)mzup Wrote:
(2018-04-04, 17:24)primaeval Wrote: Is the actual exit.on.back setting in settings.xml changing?

This is the bit of code that closes TVGF if it is set to true and play.minimized is false (play in the small window).
https://github.com/primaeval/script.tvguide.fullscreen/blob/80337aed991572111d33796bb6041a449a0a4ecb/gui.py#L969
 Yes it does change in the xml file.  It is not a big deal to me. I just wanted to point it out.     
I have just had my settings reverted back to a previous setting. I noticed that some of the settings are getting saved in the source.db and I wonder if that causes some sort of conflict where it overwrites the settings.xml at some point.

Can you try changing your TVGF settings, open TVGF to make sure they are there, exit TVGF and then exit Kodi. Open things back up and verify that the settings are the same and hopefully that fixes it. 
 The settings stored in the source.db are used as a comparison to test if the settings have changed and the xmltv data needs to be reloaded.
They aren't used to update the settings.xml file.

The most likely thing is that TVGF has been opened twice at the same time.
Either when the background update is taking place or if you get impatient with the loading time and click on TVGF again.
I tried to put some locks and checks in at one point to help prevent that but I don't think I succeeded in understanding exactly how Kodi opens program script addons.

There is also the possibility of the addon_data folder being unwritable for some reason.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - coremailrx8 - 2018-04-11

(2018-04-11, 08:57)primaeval Wrote:  The first column of what?

My bad. The first column of the EPG screen, where channel names/logo go.
Quote:Try this for one restart only.
Settings\Source\Reset on Start

If not try
Settings\Reset Database

The first option will only clear the epg.
The second will clear your addons.ini etc. 
 

Yes, I have tried that with no luck. The channels names are blank.  I will attach the xml file later for you to test, I guess that may be more helpful.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - mzup - 2018-04-11

(2018-04-11, 15:13)primaeval Wrote:
(2018-04-11, 14:59)Doctor Eggs Wrote:
(2018-04-04, 17:32)mzup Wrote:  Yes it does change in the xml file.  It is not a big deal to me. I just wanted to point it out.     
I have just had my settings reverted back to a previous setting. I noticed that some of the settings are getting saved in the source.db and I wonder if that causes some sort of conflict where it overwrites the settings.xml at some point.

Can you try changing your TVGF settings, open TVGF to make sure they are there, exit TVGF and then exit Kodi. Open things back up and verify that the settings are the same and hopefully that fixes it.  
 The settings stored in the source.db are used as a comparison to test if the settings have changed and the xmltv data needs to be reloaded.
They aren't used to update the settings.xml file.

The most likely thing is that TVGF has been opened twice at the same time.
Either when the background update is taking place or if you get impatient with the loading time and click on TVGF again.
I tried to put some locks and checks in at one point to help prevent that but I don't think I succeeded in understanding exactly how Kodi opens program script addons.

There is also the possibility of the addon_data folder being unwritable for some reason. 
 Hey guys, OK I don't know which i should try as primaeval your statement seems to cancel out the dr.'s thought. But I do know that I am not clicking twice on the app. I am careful to click only once and then wait.
What I have done in meantime is remove Dr's add on and it happened again.
Now i am attempting now is to mark xml as read only and see what happens.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2018-04-12

(2018-04-11, 23:57)mzup Wrote:
(2018-04-11, 15:13)primaeval Wrote:
(2018-04-11, 14:59)Doctor Eggs Wrote: I have just had my settings reverted back to a previous setting. I noticed that some of the settings are getting saved in the source.db and I wonder if that causes some sort of conflict where it overwrites the settings.xml at some point.

Can you try changing your TVGF settings, open TVGF to make sure they are there, exit TVGF and then exit Kodi. Open things back up and verify that the settings are the same and hopefully that fixes it.  
 The settings stored in the source.db are used as a comparison to test if the settings have changed and the xmltv data needs to be reloaded.
They aren't used to update the settings.xml file.

The most likely thing is that TVGF has been opened twice at the same time.
Either when the background update is taking place or if you get impatient with the loading time and click on TVGF again.
I tried to put some locks and checks in at one point to help prevent that but I don't think I succeeded in understanding exactly how Kodi opens program script addons.

There is also the possibility of the addon_data folder being unwritable for some reason.  
 Hey guys, OK I don't know which i should try as primaeval your statement seems to cancel out the dr.'s thought. But I do know that I am not clicking twice on the app. I am careful to click only once and then wait.
What I have done in meantime is remove Dr's add on and it happened again.
Now i am attempting now is to mark xml as read only and see what happens. 
 Post or pm me a full debug kodi.log and the before and after xml files and describe exactly what you expect and what happens, preferably with screenshots if the log doesn't show the problem.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Ey3d3fy - 2018-04-12

Hi im interested in using this guide as it looks slick and i like that its customizable. I use a iptv service, have an m3u link can i use thay for channels?


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2018-04-12

(2018-04-12, 19:47)Ey3d3fy Wrote: Hi im interested in using this guide as it looks slick and i like that its customizable. I use a iptv service, have an m3u link can i use thay for channels?
 You can pull in the streams from an m3u playlist in
Menu \ Stream Setup \ Import Playlist
There is no notification but the m3u streams will show up as the TV Guide Fullscreen addon.

But it won't pull in much of the other info like categories or time shifts.
You will have to recreate the categories by hand.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - Ey3d3fy - 2018-04-12

Thanks for quick reply bud. Iv installed latest version from repo and the guide doesnt open for me. Is this because i have simple iptv client enabled and in use, although not open at the time iv tried to open this addon.

Again many thanks


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2018-04-12

(2018-04-12, 20:17)Ey3d3fy Wrote: Thanks for quick reply bud. Iv installed latest version from repo and the guide doesnt open for me. Is this because i have simple iptv client enabled and in use, although not open at the time iv tried to open this addon.

Again many thanks
 TVGF should be totally seperate from IPTV Simple Client.
Follow the Quickstart guide in the Wiki to get going.
https://github.com/primaeval/script.tvguide.fullscreen/wiki

The least you need to do is set up an xmltv source in
Settings \ Source \ xmltv Source

You can probably use the same one as IPTV Simple Client.
If it is gzipped press the gz button and take the .gz off the url.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - bluebug - 2018-04-13

hi i am running kodi 17.6 , windows 10 , aeon nox krypton .    
  i have managed to do my xmltv and i have got a paid m3u list  ,              when i input the links to tv guide from www and run the program it says getting info from external source ,
but when you play a channel it is asking you to imput a source , can it not play from the orignal source that you put into settings  ,
i was all so woundering after i have done the xmltv and loaded the file into the tv guide along with m3u why it is not picking all channels on m3u only the channels from xmltv or ido you have to use the custom option on xmltv meld
thankyou for yoyr advice


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - primaeval - 2018-04-13

(2018-04-13, 12:45)bluebug Wrote: hi i am running kodi 17.6 , windows 10 , aeon nox krypton .    
  i have managed to do my xmltv and i have got a paid m3u list  ,              when i input the links to tv guide from www and run the program it says getting info from external source ,
but when you play a channel it is asking you to imput a source , can it not play from the orignal source that you put into settings  ,
i was all so woundering after i have done the xmltv and loaded the file into the tv guide along with m3u why it is not picking all channels on m3u only the channels from xmltv or ido you have to use the custom option on xmltv meld
thankyou for yoyr advice
 TVGF is different than IPTV Simple Client.
It is intended to be used with addons first of all.
The m3u handling was something someone asked for later on.
It doesn't try to link the m3u with the xmltv except by channel name, not id.
You will only get a match if the channel names match.

The Custom menu in xmltv Meld is for you to add in your own xmltv file or others from the internet.


RE: TV Guide Fullscreen - possibly the most powerful TV Guide in the world. ;) - bluebug - 2018-04-13

hi thanks for your reply   when you use tv guide and it asks for m3u can you not add another channel to the tv guide from m3u ,
can you not add a live channel  from m3u to custom  xmltv Meld thanks for your help and advice