v18 Script Addon - addDirectoryItem
#1
From the wiki (https://kodi.wiki/index.php?title=Python...us_scripts) I understand that everything I can do with a plugin addon
can be done with a script addon also but I fail already with the first basic call addDirectoryItem :-(

The first parameter to this call is a handle. When using a plugin, it is provided via sys.argv list, but how can it be retrieved when using a script?
__xbmcinvokerid__ seems not to be the correct one. The documentation at codedocs.xyz does also not reveal a method how to obtain that handle.

Any idea?

Thank you
Claudia
Reply
#2
unlike plugins, scripts do not use a handle.
they also use a different method to add items to a list.

there's a basic howto in the wiki:
https://kodi.wiki/view/HOW-TO:Script_addon
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Ronie, thank you - I was searching the wiki but I must have missed it.
Do you, or anyone else, know about where to read about such topics?
I mean a something like
Script addons cannot be using addDirectorItem ...
Plugin addons should not be using Player class ...

I hope I haven't over-read this in wiki as well. Confused

Cheers
Claudia
Reply

Logout Mark Read Team Forum Stats Members Help
Script Addon - addDirectoryItem0