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)



- mwkurt - 2011-07-28

Jason102 Wrote:You should be able to force a reset from the options.

mwkurt: That ability isn't currently in the plans. Wait until after the next release, then ask again...I just want to make sure it's actually something you still want after the rules are added.

Okie Dokie! Looking forward to seeing the new rules.

Mark


- Martijn - 2011-07-29

I've send you a "pull request" on github for adding Dutch language for those things that are localized


- Jason102 - 2011-07-29

I did see it, thanks a lot!

Ok, update to stable-pre. This one includes some random bug fixes, but the important part is the initial push of the channel rules junk. This feature is not yet complete!

The point of this is for anyone that likes to test and see if the interface makes sense. In order to do some random things that I wanted to do it is...a bit different than most interfaces in XBMC. The goal was to have a minimal interface for the rules that makes sense and allows flexibility in the future.

I'm not going to give an overview of what's going on with it because that would defeat the purpose of having users see if it's intuitive enough. It's worth noting that while a couple of the rules will work, most of them don't. This is purely a GUI test.

Please give feedback. Oh, one more thing, you probably won't be able to get to them if you have a skin that actually skins the channel configuration...sorry, but those all have to be updated individually.


- Martijn - 2011-07-30

Jason102 Wrote:I did see it, thanks a lot!

Ok, update to stable-pre. This one includes some random bug fixes, but the important part is the initial push of the channel rules junk. This feature is not yet complete!

The point of this is for anyone that likes to test and see if the interface makes sense. In order to do some random things that I wanted to do it is...a bit different than most interfaces in XBMC. The goal was to have a minimal interface for the rules that makes sense and allows flexibility in the future.

I'm not going to give an overview of what's going on with it because that would defeat the purpose of having users see if it's intuitive enough. It's worth noting that while a couple of the rules will work, most of them don't. This is purely a GUI test.

Please give feedback. Oh, one more thing, you probably won't be able to get to them if you have a skin that actually skins the channel configuration...sorry, but those all have to be updated individually.

If thats the case you can deleted the file from the 720p folder of the skin wich operates the channelconfig interface so it will use the default. I'll take a look what have come up with a let you know if ther some problems


- Sranshaft - 2011-07-30

Jason102 Wrote:Oh, one more thing, you probably won't be able to get to them if you have a skin that actually skins the channel configuration...sorry, but those all have to be updated individually.

I'm ready to update the reFocus skin and possibly look at skinning the default's configuration windows but is the rules window set or do you foresee changes to the IDs and structure in the future?

Also, on a unrelated note, in the bug fixes you mentioned have you had a look at the background updater? I recently forced a refresh of my channels and now I'm left with only one channel. I've let it run for a couple of hours knowing that it now updates while playing but no additional channels were added. I had a look in the debug log and nothing out of the ordinary stood out. I can get you a new log though if you want to have a look.


- Jason102 - 2011-07-30

Sranshaft, can you get me a log?

As far as the rules window, don't start skinning it yet. There is at least 1 thing I want to change first, but the majority of it will either stay or change depending on feedback to it. There were several problems I had to get around, which is why it's so different than other stuff in XBMC, but if people can't figure out how to use it relatively easily then it should probably change.


- brad2157 - 2011-07-30

I have installed v1.2.0 on my apple TV2 and it shows up in XBMC under the "programs" category. When I click it, it says loading and reads through the channels, but then I get a error message that says "No Valid Channel Data Found". Would love to use this program and even make a donation after I get it working. What am I doing wrong or not doing that is causing this from working? Thanks in advance.

I have tried to search around, but I am unable to find anything that is a fix for this trouble as of yet.


- Sranshaft - 2011-07-31

Here are the relevant lines from the debug log. I'm now seeing a lot of warnings and errors being thrown by PseudoTV.

Code:
10:05:06 T:2676 M:1820291072  NOTICE: -->Python Interpreter Initialized<--
10:05:06 T:2676 M:1819521024   ERROR: C:\Users\XBMC\AppData\Roaming\XBMC\addons\script.pseudotv\resources\lib\Overlay.py:63: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
10:05:06 T:2676 M:1819521024   ERROR: C:\Users\XBMC\AppData\Roaming\XBMC\addons\script.pseudotv\resources\lib\Overlay.py:39: DeprecationWarning: object.__init__() takes no parameters
                                              xbmc.Player.__init__(self, xbmc.PLAYER_CORE_AUTO)
10:05:06 T:2392 M:1819500544 WARNING: Skin has invalid include: screenwidth
10:05:06 T:2392 M:1816813568 WARNING: Previous line repeats 1 times.
10:05:06 T:2392 M:1816813568   ERROR: Texture manager unable to load file: C:\Users\XBMC\AppData\Roaming\XBMC\addons\skin.refocus\media\flags\networks\
10:05:14 T:2392 M:1818222592  NOTICE: DVDPlayer: Opening: G:\Television\Harsh Realm\Season 01\S01E01 - Pilot.avi
10:05:14 T:2392 M:1818222592  NOTICE: CDVDPlayer::CloseFile()
10:05:14 T:2392 M:1818222592 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
10:05:14 T:2392 M:1818222592  NOTICE: DVDPlayer: waiting for threads to exit
10:05:14 T:2392 M:1818222592  NOTICE: DVDPlayer: finished waiting
10:05:14 T:2392 M:1818435584 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
10:05:14 T:3416 M:1818435584  NOTICE: Creating InputStream
10:05:14 T:3416 M:1846067200  NOTICE: Creating Demuxer
10:05:14 T:3416 M:1837400064  NOTICE: Opening video stream: 0 source: 256
10:05:14 T:3416 M:1837400064  NOTICE: Creating video codec with codec id: 13
10:05:14 T:3416 M:1837314048  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
10:05:14 T:3416 M:1837314048  NOTICE: Creating video thread
10:05:14 T:3416 M:1837314048  NOTICE: Opening audio stream: 1 source: 256
10:05:14 T:3416 M:1837314048  NOTICE: Finding audio codec for: 86017
10:05:14 T:1948 M:1837314048  NOTICE: running thread: video_thread
10:05:14 T:3416 M:1837297664  NOTICE: Creating audio thread
10:05:14 T:3504 M:1837297664  NOTICE: running thread: CDVDPlayerAudio::Process()
10:05:14 T:3504 M:1837293568  NOTICE: Creating audio device with codec id: 86017, channels: 2, sample rate: 48000, no pass-through
10:05:14 T:1948 M:1833459712  NOTICE:  fps: 23.976024, pwidth: 640, pheight: 368, dwidth: 640, dheight: 368
10:05:14 T:1948 M:1833459712  NOTICE: Display resolution USER : 1280x720 @ 60.00 - Full Screen (30)
10:05:27 T:2392 M:1829171200 WARNING: Skin has invalid include: screentype
10:05:27 T:2676 M:1828605952 WARNING: Previous line repeats 1 times.
10:05:27 T:2676 M:1828605952 WARNING: 'xbmcgui.lock()' is depreciated and serves no purpose anymore, it will be removed in future releases
10:06:48 T:2392 M:1827659776   ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\XBMC\AppData\Roaming\XBMC\addons\script.pseudotv

Tested on the Windows Git:20110725-cce6614 build with PseudoTV stable-pre version.

Edit: Just tested with the new stable-pre buil and now I'm getting an 'Unable to populate channels' error. This is the relevant lines from the debug:

Code:
10:32:51 T:620 M:1846648832   ERROR: C:\Users\XBMC\AppData\Roaming\XBMC\addons\script.pseudotv\resources\lib\Overlay.py:63: DeprecationWarning: object.__init__() takes no parameters
                                              xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
10:32:51 T:620 M:1846648832   ERROR: C:\Users\XBMC\AppData\Roaming\XBMC\addons\script.pseudotv\resources\lib\Overlay.py:39: DeprecationWarning: object.__init__() takes no parameters
                                              xbmc.Player.__init__(self, xbmc.PLAYER_CORE_AUTO)
10:32:51 T:2392 M:1846632448 WARNING: Skin has invalid include: screenwidth
10:32:51 T:2392 M:1844260864 WARNING: Previous line repeats 1 times.
10:32:51 T:2392 M:1844260864   ERROR: Texture manager unable to load file: C:\Users\XBMC\AppData\Roaming\XBMC\addons\skin.refocus\media\flags\networks\
10:32:52 T:1636 M:1843339264  NOTICE: 'TRAKT: Resetting last update timestamp'
10:32:52 T:3864 M:1843331072 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:52 T:3864 M:1843331072 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:52 T:620 M:1843331072   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 1
10:32:52 T:3864 M:1843306496 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:52 T:3864 M:1843306496 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:52 T:620 M:1843306496   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 2
10:32:52 T:3864 M:1843318784 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:52 T:3864 M:1843318784 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:52 T:620 M:1843318784   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 3
10:32:53 T:3864 M:1843326976 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:53 T:3864 M:1843326976 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:53 T:620 M:1843326976   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 4
10:32:53 T:3864 M:1843331072 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:53 T:3864 M:1843331072 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:53 T:620 M:1843560448   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 5
10:32:53 T:3864 M:1843535872 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:53 T:3864 M:1843535872 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:53 T:620 M:1843535872   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 6
10:32:53 T:3864 M:1845006336 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:53 T:3864 M:1845006336 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:53 T:620 M:1845006336   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 7
10:32:54 T:3864 M:1845010432 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:54 T:3864 M:1845010432 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:54 T:620 M:1845006336   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 8
10:32:54 T:3864 M:1844973568 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:54 T:3864 M:1844973568 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:54 T:620 M:1844973568   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 9
10:32:54 T:3864 M:1844981760 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:54 T:3864 M:1844981760 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:54 T:620 M:1844981760   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 10
10:32:54 T:3864 M:1844989952 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:54 T:3864 M:1844989952 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:54 T:620 M:1844989952   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 11
10:32:55 T:3864 M:1844965376 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:55 T:3864 M:1844965376 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:55 T:620 M:1844965376   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 12
10:32:55 T:3864 M:1844969472 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:55 T:3864 M:1844969472 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:55 T:620 M:1844969472   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 13
10:32:55 T:3864 M:1845030912 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:55 T:3864 M:1845030912 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:55 T:620 M:1845030912   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 14
10:32:55 T:3864 M:1845026816 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:55 T:3864 M:1845026816 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:55 T:620 M:1845026816   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 15
10:32:56 T:3864 M:1845002240 WARNING: JSONRPC: Value does not match any of the enum values in type
10:32:56 T:3864 M:1845002240 WARNING: JSONRPC: Array element at index 2 does not match in type fields
10:32:56 T:620 M:1845002240   ERROR: script.pseudotv-ChannelList: Unable to get information about channel 16
10:32:56 T:620 M:1845010432   FATAL: script.pseudotv-TVOverlay: FATAL ERROR: Unable to populate channels. Please verify that youhave scraped media in your library and that you haveproperly configured channels.



- zepfan - 2011-07-31

brad2157 Wrote:I have installed v1.2.0 on my apple TV2 and it shows up in XBMC under the "programs" category. When I click it, it says loading and reads through the channels, but then I get a error message that says "No Valid Channel Data Found". Would love to use this program and even make a donation after I get it working. What am I doing wrong or not doing that is causing this from working? Thanks in advance.

I have tried to search around, but I am unable to find anything that is a fix for this trouble as of yet.

Do you have files scanned into your library?


- Jason102 - 2011-07-31

Sranshaft: how old or new is the daily XBMC build you're using?


- Sranshaft - 2011-07-31

@Jason: It was complied 2011-07-25 so 6 days ago. I'll try a newer build and see if I get the same results.

Edit: Just updated to the newest build (2011-07-31) and still get the same errors.


- Martijn - 2011-07-31

Sranshaft Wrote:@Jason: It was complied 2011-07-25 so 6 days ago. I'll try a newer build and see if I get the same results.

Edit: Just updated to the newest build (2011-07-31) and still get the same errors.

I have the same problem. XBMC built july-30 and your github version of PseudoTV
Here the dubug log.
http://pastebin.com/eDdJcfxQ

I think that at start-up TraktUtilities has the same problem with JSON


- Jason102 - 2011-07-31

Oops, a piece of an "experiment" got through to the repo. Fixed.


- harryremon - 2011-08-01

I have some feature suggestions Please Consider them:
1-Make Psuedo TV work in background like normal videos so we can change settings or move through the library while it's working and playing the tv (We can assign a key like "C" or any other key yo exit the psuedo tv).

2-Putting ads between shows by letting the user choose a folder that contains some videos and making him choose if ads are off or 1 or 2 or 3 etc.. and randomly playing that number of videos(ads) between shows.

Thanks.


- Jason102 - 2011-08-01

harryremon - Heh, I have enough difficulty making it work in the foreground, let alone the background. So the Tab key normally does this, just not when PseudoTV is enabled. I might be able to do this, though.

As far as your second request, this will be in the next version (of a sort). One of the rules will be to interleave one channel with another...meaning that if you setup a channel of ads (and then disable that channel from playing using a rule) you can interleave it with whatever other channel you want. Anyway, wait until the next version and you can probably do this.