Kodi Community Forum
Correct usage of xbmc.Player.getPlayingFile?? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Correct usage of xbmc.Player.getPlayingFile?? (/showthread.php?tid=5756)



- TheNME123 - 2004-09-10

when i'm trying to get the actual playing movie with the following method the python interpreter gives me an error saying something about "needs argument".

movietitle = xbmc.player.getplayingfile()

what have i done wrong?


- darkie - 2004-09-10

try
movietitle = xbmc.player().getplayingfile()


- TheNME123 - 2004-09-10

thank you very much! :thumbsup: :idea: