2014-04-06, 17:36
(2014-04-06, 10:27)Redkiller223 Wrote:(2014-04-06, 04:59)Lunatixz Wrote: ::Update::
Putting some finishing touches on Direct Plugin Channel building... it will function similar to My-library, except instead of building strms it will build a channel. The Code is a little sloppy, but works!! I will improve on it as I go.
There are limitations... some major ones... the plugins that label their media as a 'directory' instead of 'file'. Won't work!! unfortunately there isn't a simple way to test if the addon is correctly formatted. So I will add a prompt "Plugin not compatible"
I don't' know the reason why dev's are using 'directory' instead of file... I'm not familiar with building video plugins.
More details to come...
::Update::
Post 2 updated with more chtype 15 details, I might push the update later for you guys to play with...
BTW the chtype 15 function works similar to how I autotune USTVnow. I hope that this weird problem with USTVnow not working for some users doesn't carry over to the new channel type. Hopefully it's only a bug with the USTVnow plugin.
::Update::
Git updated version v.0.3.7 includes beta chtype 15. Read post 2 for details, no need for bug logs for chtype 15... just post your experiences for now...
Tried this from your sample code with the discovery plugin. Just hangs. Let it sit for about ten mins, still stuck on adding videos. Heres a snippet of the end of my log if it helps any...
Code:03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: setupChannel 5
03:13:59 T:19816 DEBUG: script.pseudotv.live-Channel: Added rule - Rename Channel to Bad Dog!
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: runActions 1 on channel 5
03:13:59 T:19816 DEBUG: script.pseudotv.live-FileAccess: trying to open C:\Users\Virus233\AppData\Roaming\XBMC\userdata\addon_data\script.pseudotv.live\settings2.xml
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: makeChannelList, CHANNEL: 5
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: Building Plugin Channel, 0...
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: BuildPluginFileList
03:13:59 T:19816 NOTICE: plugin.video.discovery_com
03:13:59 T:19816 NOTICE: ['Animal Planet', 'Bad Dog!']
03:13:59 T:19816 NOTICE: 2
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: sendJSON Creating Cache
03:13:59 T:19816 DEBUG: script.pseudotv.live-FileAccess: trying to open C:\Users\Virus233\AppData\Roaming\XBMC\userdata\guisettings.xml
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: determineWebServer is True
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: determineWebServer port 80
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: determineWebServer username xbmc
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: determineWebServer password is AAAAA
03:13:59 T:19816 DEBUG: script.pseudotv.live-ChannelList: sendJSON command: {"jsonrpc":"2.0","method":"Files.GetDirectory","params":{"directory":"plugin://plugin.video.discovery_com/Animal Planet/Bad Dog!","properties":["genre","runtime","description"]},"id":1}
03:13:59 T:16836 DEBUG: webserver: request received for /jsonrpc
03:13:59 T:19816 DEBUG: JSONRPC: Incoming request: {"jsonrpc":"2.0","method":"Files.GetDirectory","params":{"directory":"plugin://plugin.video.discovery_com/Animal Planet/Bad Dog!","properties":["genre","runtime","description"]},"id":1}
03:13:59 T:19816 DEBUG: JSONRPC: Calling files.getdirectory
03:13:59 T:19816 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Discovery Networks('plugin://plugin.video.discovery_com/Animal Planet/Bad Dog!','1','')
03:13:59 T:19816 INFO: initializing python engine.
03:13:59 T:19816 DEBUG: new python thread created. id=13
03:13:59 T:19816 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the Discovery Networks (id=13) plugin...
03:13:59 T:20224 NOTICE: Thread XBPyThread start, auto delete: false
03:13:59 T:20224 DEBUG: Python thread: start processing
Dumb questions that I have to ask, you have Discovery Networks plugin installed?
What OS and XBMC build are you running? I assume you've had no luck with the USTVnow autotune?
Your hanging at the same spot ustvnow autotune hangs out. I don't understand whats different between my two test machines and yours. Why does my xbmc return a json request from xbmc and yours doesn't??
Do you have webserver enabled? (Shouldn't matter, but then again who knows)
Do you have upnp control on?
Let me know...
(2014-04-06, 12:16)zensbert Wrote:(2014-04-06, 00:02)Lunatixz Wrote: 1. if you are using a "directory" type channel you can only build from the root directory, subfolders are ignored... (nothing new here!!)
Hi,
i got a few problems; i got a network drive for music videos, with a subfolder for oldies and one with charts (with subfolders for years).. in your newest version (released today) it ignores the subfolders, two versions ahead it worked (really!)?
It creates the Oldies-Channel and shows the vids in the epg but if you change to it, it tries to load a few seconds, but then it skips back to channel 1. The Charts-Channel isnt created at all.
if it helps:
two versions ago was using different code, Gotham added security restrictions to json requests.
New code doesn't use json to build "Directory" chtypes anymore. If enough users want subfolders to be included, I'll add it...
(2014-04-06, 10:27)Redkiller223 Wrote: i also experimented with a stream, but it doesnt load:
<setting id="Channel_19_type" value="9" />
<setting id="Channel_19_1" value="5400" />
<setting id="Channel_19_2" value="rtmp://flash.cdn.deluxemusic.tv/deluxemusic.tv-live/web_850.stream" />
<setting id="Channel_19_3" value="DeluxeMusic" />
<setting id="Channel_19_rulecount" value="1" />
<setting id="Channel_19_changed" value="False" />
<setting id="Channel_19_time" value="0" />
<setting id="Channel_19_rule_1_id" value="1" />
<setting id="Channel_19_rule_1_opt_1" value="DeluxeMusic" />
Are there some settings incorrect?
Yes, you need to use the example in post2, you're missing switch _4.