Kodi Community Forum
[RELEASE] PseudoTV Addon: Virtual EPG and TV Channel Surfing Script - 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)
+----- Forum: PseudoTV / PseudoTV Live (https://forum.kodi.tv/forumdisplay.php?fid=231)
+----- Thread: [RELEASE] PseudoTV Addon: Virtual EPG and TV Channel Surfing Script (/showthread.php?tid=90738)



- Sranshaft - 2011-04-01

@Jason: Uploaded the debug log where I open the add-on setting window > Open Channel Configuration window > delete the pre-made network channels (ABC, CBS, AMC, Bravo) > Close windows > Reopen windows to find the channels I just deleted there again.

Another thought regarding the channel configuration window. You may want to add 'OK' and 'Cancel' buttons to the dialog. It seems counter-intuitive to have to escape out of the window. Normally that only happens when you don't want to change anything.

Also, you may want to add a 'None' label for channels you don't want to have a playlist and therefore be inactive.

And I know you said it'd be a bit difficult to skin that window but I'd really hope you'd at least reconsider it. Or at the very least try to add it to the add-on setting window (I'm pretty sure that's not possible though?).


- Jason102 - 2011-04-01

I've uploaded another version that really has only a couple of additional lines of debugging. When you get a chance, can you download it and get the same log you gave me with the new version?

I think you're right, Ok and Cancel buttons would be a good idea. I'll work on it.

Again, I think you're probably right about the None label.

As far as skinning goes, I don't really deny skinning the config, it may just be a bit of a pain. As long as the ID structure doesn't change, things should work if you skin it. If you come up with something, I'd love to include it.

By the way, it wouldn't be possible to do what I did in the normal setting window. I tried for a while but ran into limitations pretty quickly.


- jtucker1972 - 2011-04-01

Tried the latest pre-stable tonight. Still not saving the channel settings. Below is my debug log file.

Debug Log


- User 55003 - 2011-04-01

jtucker1972 Wrote:Tried the latest pre-stable tonight. Still not saving the channel settings.

I found that if you Esc out of the settings window insted of selecting "ok" as usual it will save your settings, small bug.. The new channel config looks great, just skinning it now, keep up the good work Big Grin


- danz0l - 2011-04-01

Steveb Wrote:I found that if you Esc out of the settings window insted of selecting "ok" as usual it will save your settings, small bug.. The new channel config looks great, just skinning it now, keep up the good work Big Grin

Doesnt work for me, even on latest stable pre.


- Jason102 - 2011-04-01

Damn, I see the same thing as Steveb, if I setup the channels and press Ok, all of my settings are lost. If I escape out, though, then they're saved.


- jtucker1972 - 2011-04-01

maybe this is where having the OK or Cancel button would work better than the Esc. I always think of Esc as wanting to cancel what I did or back out of. It would also be more consistent with the XBMC settings where if you Esc it does not save unless you click the OK button.


- Jason102 - 2011-04-01

As I said before, I will do that. It is not the issue in this case, though. It appears that I can write to the settings file just fine when the channel config window is open, but when the Ok button is pressed in the main addon settings window then XBMC overwrites the file, deleting everything that was written. If you cancel out of the main settings, though, then it won't do that so the settings are kept.


- danz0l - 2011-04-01

Jason102 Wrote:As I said before, I will do that. It is not the issue in this case, though. It appears that I can write to the settings file just fine when the channel config window is open, but when the Ok button is pressed in the main addon settings window then XBMC overwrites the file, deleting everything that was written. If you cancel out of the main settings, though, then it won't do that so the settings are kept.

confirmed Jason. If i add some tv network channels then click cancel on exiting the plugin, they remain. Good catch.


- Jason102 - 2011-04-01

Steveb's the one that did the work, I couldn't figure the damn thing out.


- danz0l - 2011-04-01

Jason102 Wrote:Steveb's the one that did the work, I couldn't figure the damn thing out.

Well done Steveb, at least we have a working solution nowSmile


- jtucker1972 - 2011-04-01

Jason102 Wrote:As I said before, I will do that. It is not the issue in this case, though. It appears that I can write to the settings file just fine when the channel config window is open, but when the Ok button is pressed in the main addon settings window then XBMC overwrites the file, deleting everything that was written. If you cancel out of the main settings, though, then it won't do that so the settings are kept.

You could write out the Channel Configuration settings to a separate ChannelConfigSettings.xml file so that XBMC doesn't overwrite it.


- Jason102 - 2011-04-01

I've done essentially that. I have a new settings class that will work in all situations. It should be transparent to the user. At the moment it slows down the channel configuration tool and needs to be tested more to make sure it doesn't break anything. Still no Ok and Cancel buttons, but at least pressing Ok on the main settings screen should still save channel data.

It's up in stable-pre.


- jtucker1972 - 2011-04-01

Jason, you may want to add a dialog saying Saving Configuration. If I change a channel and then select the next channel before the script has saved the previous setting, it will load the previous channel.

For example,
Change Channel 1
Press Esc
Select Channel 2 right away
It shows Channel 1 instead of Channel 2

I'm puzzled why it is taking so long for the settings to save since this is a built in function you are using. Not sure how well it is going to work waiting 5 seconds between channel saves. On loading the configuration tool, it took 15 seconds. Very weird.

Edit: I don't think it's the new settings. If I put a dialog to start before self.saveSettings() and close it right after, the dialog opens and closes in a split second. Not sure yet where in the process it is slowing down, but it's not in the saveSettings() function for sure.


- Jason102 - 2011-04-02

Ok, new stable-pre version. Improved the speed of the new settings stuff, which affects the overall speed of the channel configuration. Added Ok and Cancel buttons to the same utility. Set the channel type to "None" as opposed to just a blank type to get rid of a channel. Some small random fixes.