WIP DevView
#1
Likely only useful for those developing Addons and skins.

This tool gives you a snapshot of many details available via:

sys.listitem.getVideoInfoTag()
xbmc.getInfoLabel
JsonRPC


As you interact with kodi, use this tool to view data/information related to the current highlighted item.

When highlighted on a Movie, TV episode or music track, use the context menu "DevView".

This will bring up a fullscreen view of a text version of the report

Best view of data is via a web browser on same machine, access via web browser:

http://127.0.0.1:9999

This html view is a copy of the last "DevView" run , and is much nicer to view.


Kodi File Manager Source:
https://kcook98765.github.io/repository.kcook98765/

Direct ZIP Install:
https://github.com/kcook98765/repository...-1.0.2.zip

Github source for this addon:
https://github.com/kcook98765/script.DevView

If there is interest, I can work on cleaning it up, adding additional details, etc.

I am open to any piece of data available via python scripts, or additional JsonRPC calls to add to the report (if it is obscure, please do note minimal python code to access the detail you are looking for).
Reply
#2
I have cleaned this up even more, and able to run on Matrix and Nexus without issues (windows, osmc, shield, ubuntu tested).

I would love some feedback/input on this tool.

Thought I'd post a screen shot showing the beginning of the html version of the report:

Image
Reply
#3
More changes made.

Details can include (depending on the media item highlighted when triggering this addon):

Screenshot.png generation
sys.listitem.getVideoInfoTag()
sys.listitem.getMusicInfoTag()
xbmc.getInfoLabel()

And Various JSON calls (uses introspect lookup to find all possible "properties" to return:
Application.GetProperties
System.GetProperties

VideoLibrary.GetMovieDetails
VideoLibrary.GetMovieSetDetails
VideoLibrary.GetTVShowDetails
VideoLibrary.GetSeasonDetails
VideoLibrary.GetEpisodeDetails
VideoLibrary.GetMusicVideoDetails
AudioLibrary.GetArtistDetails
AudioLibrary.GetAlbumDetails
AudioLibrary.GetSongDetails
PVR.GetProperties ( and if channelid found: PVR.GetBroadcasts is run then any "match" for the "ListItem.DateTime" (accounting for UTC differences) is searched for,  and if found, the "broadcastid" is used to run "PVR.GetBroadcastDetails" )

I am thinking about making a couple more calls available, but they seem to take a very long time to execute:
Addons.GetAddons
Settings.GetSettings

I might add a setting to enable/disable(default) for these with note they can take a long time to execute.

I am using this Addon to help verify details of another addon in development to verify the final listitems built have all the data as expected.
Reply
#4
Thank you very much for your work, it has been very useful.
Reply
#5
No problem. Glad it is of help!
Reply
#6
Great this tool. thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
DevView0