Python currentmedia question
#1
I am playing around with python scripting on XBMC, i want the script/or actually service to behave differently if there is a movie playing, or a tvshow playing. In some other script (artwork downloader) i have seen the use of

if currentmedia['mediatype'] == 'tvshow'

but cant get it to work.

Is that a custom function that the owner created, and if so, how can I test what type of media is currently playing
Reply
#2
this info is pulled from database using JSON-RPC and put in a list. This is not actual live data.

what you need is something like this
https://github.com/XBMC-Addons/service.s...lt.py#L751
Read/follow the forum rules.
For troubleshooting and bug reporting, read this first
Interested in seeing some YouTube videos about Kodi? Go here and subscribe
Reply
#3
Worked perfectly. Thanks
Reply

Logout Mark Read Team Forum Stats Members Help
Python currentmedia question0