MilhouseVH / texturecache.py

Utility script to manage the XBMC texture cache
http://forum.xbmc.org/showthread.php?tid=158373
GNU General Public License v2.0
181 stars 34 forks source link

Add play status to output of texturecache status #27

Closed graysky2 closed 9 years ago

graysky2 commented 9 years ago

Currently, there is no indication of media player status by querying this command. How tough would it be to add the status of the player (i.e. playing or paused, etc)?

MilhouseVH commented 9 years ago

status already includes the player details when media is playing, but doesn't indicate paused state, so I've added that (plus also seeking) in v1.9.8, just pushed.

You should see:

Not playing:

Current Profile     : Master user
Scanning Music      : No
Scanning Video      : No
ScreenSaver Active  : Yes
Suspend Supported   : Yes
Idle Timer Enabled  : Yes
System Idle > 600s  : No
PVR Enabled         : No
Player              : None

Playing video:

Current Profile     : Master user
Scanning Music      : No
Scanning Video      : No
ScreenSaver Active  : No
Suspend Supported   : Yes
Idle Timer Enabled  : Yes
System Idle > 600s  : No
PVR Enabled         : No
Player              : Video
Activity            : Movie
Title               : Nightcrawler
Progress            : 00:00:00 (0.00%, 01:58:05 remaining)

The Progress line will also now indicate paused/seeking as appropriate:

Progress            : 00:38:07 (32.28%, 01:19:58 remaining, paused)
Progress            : 00:38:18 (32.45%, 01:19:47 remaining, seeking)
graysky2 commented 9 years ago

nice, thanks for the quick reply