title: Make the boolean return to true or false in python
body: <p>I need some help with my python code. I want to create a function to check if a video is playing a media file which is true or false to get the return boolean. </p>
  
  <p>I have created the function in player.py:</p>
  
  <pre><code>def isPlayingVideo(self):
      isPlayingVideo = xbmc.Player().isPlayingVideo()
  
      if isPlayingVideo == 'true':
         #set it to true
      else:
         #set to false
  </code></pre>
  
  <p>In test.py, I want to check if the isPlayingVideo() have the return boolean which is true or false:</p>
  
  <pre><code>import player
  
  if not self.player.isPlayingVideo():
     #ok let do something
  </code></pre>
  
  <p>Can you please show me an example snippet of how I could use to make the boolean to return to true of false when I am using <code>if not self.player.isPlaying()</code>??</p>