commit/StationPlaylist: josephsl: SPL Assistant (4.0-dev/legacy): S now gives track starts in time.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Mon, 03 Nov 2014 20:39:22 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/dbf908f2c09a/
Changeset:   dbf908f2c09a
Branch:      legacy
User:        josephsl
Date:        2014-11-03 20:33:50+00:00
Summary:     SPL Assistant (4.0-dev/legacy): S now gives track starts in time.

Affected #:  2 files

diff --git a/addon/appModules/splstudio.py b/addon/appModules/splstudio.py
index b44cae8..1d49626 100644
--- a/addon/appModules/splstudio.py
+++ b/addon/appModules/splstudio.py
@@ -743,6 +743,7 @@ class AppModule(appModuleHandler.AppModule):
        SPLNextTrackTitle = 4
        SPLPlaylistRemainingDuration = 5
        SPLTemperature = 6
+       SPLScheduled = 7
 
        # Table of child constants based on versions
        # These are scattered throughout the screen, so one can use 
foreground.children[index] to fetch them.
@@ -752,6 +753,7 @@ class AppModule(appModuleHandler.AppModule):
                SPLSystemStatus:[-2, -3], # The second status bar containing 
system status such as up time.
                SPLHourTrackDuration:[13, 17], # For track duration for the 
given hour marker.
                SPLHourSelectedDuration:[14, 18], # In case the user selects 
one or more tracks in a given hour.
+               SPLScheduled:[15, 19], # Time when the selected track will 
begin.
                SPLNextTrackTitle:[2, 7], # Name and duration of the next track 
if any.
                SPLPlaylistRemainingDuration:[12, 16], # Remaining time for the 
current playlist.
                SPLTemperature:[1, 6], # Temperature for the current city.
@@ -817,7 +819,7 @@ class AppModule(appModuleHandler.AppModule):
                ui.message(obj.name)
 
        def script_sayScheduledTime(self, gesture):
-               obj = self.status(self.SPLSystemStatus).children[1]
+               obj = self.status(self.SPLScheduled).firstChild
                ui.message(obj.name)
 
        def script_sayListenerCount(self, gesture):

diff --git a/readme.md b/readme.md
index 9ceb1e9..92d736d 100755
--- a/readme.md
+++ b/readme.md
@@ -58,7 +58,7 @@ The available status information are:
 * P: Playback status (playing or stopped).
 * Shift+P: Pitch of the current track (SPL 5.00 and later).
 * R: Record to file enabled/disabled.
-* S: Track playback schedule.
+* S: Track starts in (scheduled).
 * T: Cart edit mode on/off.
 * U: Studio up time.
 * Y: Playlist modified status (SPL 5.00 and later).

Repository URL: https://bitbucket.org/nvdaaddonteam/stationplaylist/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts: