2015-11-26, 23:35
Hi.
What exactly is "XFILE::CFileFactory" and why is it bothering me?
Alternatively: "What exactly is 'Inputstream' and why is it bothering me?
Where
In a plugin, I return a really simple list of items. [ (Image, dbid)... ]
I don't want/don't need an URL for anything as the items are just images and I handle the onclick with another script that gets all the necessary details.
How
It looks more or less like this:
I have tried setting the entire xmbcplugin to .. "do not scan items" (at work, cannot remember the term) but with no effect.
What
It works, but something is fishy:
1. If I set the URL to anything I get the XFILE::CFileFactory::CreateLoader error.. One line in the log for each item in the list. with +4000 it gets really ugly.
2. if I leave out the URL, I get the InputStream: Error opening, error.. All the errors in a single line in the log, but still a lot of failing!
The latter seems to be the "fastest" of the two errors, but something is turning the system sluggish and finally all contact to the DB is lost... Kodi restart takes care of that, but it happens way to fast to be ignored.
The errors look like this in case you want to see them..
My error of choice as it is (but it seems to take some time to complete the failing?) :
And the other type (actually fails faster I think, If the log is any hint?):
Kodi (16.0-BETA2 Git:20151115-07f691e)
What exactly is "XFILE::CFileFactory" and why is it bothering me?
Alternatively: "What exactly is 'Inputstream' and why is it bothering me?
Where
In a plugin, I return a really simple list of items. [ (Image, dbid)... ]
I don't want/don't need an URL for anything as the items are just images and I handle the onclick with another script that gets all the necessary details.
How
It looks more or less like this:
Code:
for item in l:
li = xbmcgui.ListItem(label=item[1], label2=item[0], iconImage=item[3])
li.setInfo('audio', { 'year': item[2] })
li.setProperty('mimetype', 'video/x-msvideo') # No effect?
li.setProperty('IsPlayable', 'False') # No effect?
li.setProperty('IsFolder', 'False') # No effect?
# url = 'track-top10.php?s=%s' % (urllib.quote_plus(search_string.encode("utf-8"))) # saw this in another thread.. might need the urllib thingamagicky someday..
# url = unicode(sys.argv[0] + '?f=ff') # Testing.. something hates "plugin" as a "protocol" tho..
url = '' # Seems to be the best not-working "solution"
listing.append((url, li, False))
xbmcplugin.addDirectoryItems(addon_handle, listing)
xbmcplugin.endOfDirectory(addon_handle)
I have tried setting the entire xmbcplugin to .. "do not scan items" (at work, cannot remember the term) but with no effect.
What
It works, but something is fishy:
1. If I set the URL to anything I get the XFILE::CFileFactory::CreateLoader error.. One line in the log for each item in the list. with +4000 it gets really ugly.
2. if I leave out the URL, I get the InputStream: Error opening, error.. All the errors in a single line in the log, but still a lot of failing!
The latter seems to be the "fastest" of the two errors, but something is turning the system sluggish and finally all contact to the DB is lost... Kodi restart takes care of that, but it happens way to fast to be ignored.
The errors look like this in case you want to see them..
My error of choice as it is (but it seems to take some time to complete the failing?) :
Code:
19:36:59 T:6856 ERROR: InputStream: Error opening,
19:47:26 T:6012 ERROR: Previous line repeats 1336 times.
And the other type (actually fails faster I think, If the log is any hint?):
Code:
22:07:06 T:2456 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.mymovielist/
22:07:06 T:2456 ERROR: InputStream: Error opening, plugin://plugin.video.mymovielist/
22:07:06 T:2456 WARNING: XFILE::CFileFactory::CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.mymovielist/
22:07:06 T:2456 ERROR: InputStream: Error opening, plugin://plugin.video.mymovielist/
.... repeat ad nauseum ...
Kodi (16.0-BETA2 Git:20151115-07f691e)