commit/StationPlaylist: josephsl: Hour announcement for time announcement commands are now honored.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Thu, 11 Feb 2016 18:06:32 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/0ebeb149c312/
Changeset:   0ebeb149c312
Branch:      master
User:        josephsl
Date:        2016-02-11 18:06:25+00:00
Summary:     Hour announcement for time announcement commands are now honored.

Affected #:  2 files

diff --git a/addon/appModules/splstudio/splconfig.py 
b/addon/appModules/splstudio/splconfig.py
index 785f81a..59d7e24 100755
--- a/addon/appModules/splstudio/splconfig.py
+++ b/addon/appModules/splstudio/splconfig.py
@@ -38,7 +38,7 @@ LibraryScanAnnounce = option("off", "ending", "progress", 
"numbers", default="of
 TrackDial = boolean(default=false)
 CategorySounds = boolean(default=false)
 MetadataReminder = option("off", "startup", "instant", default="off")
-TimeHourAnnounce = boolean(default=false)
+TimeHourAnnounce = boolean(default=true)
 ExploreColumns = 
string_list(default=list("Artist","Title","Duration","Intro","Category","Filename","Year","Album","Genre","Time
 Scheduled"))
 [IntroOutroAlarms]
 SayEndOfTrack = boolean(default=true)
@@ -152,6 +152,8 @@ def initConfig():
                        
SPLConfigPool.append(unlockConfig(os.path.join(SPLProfiles, profile), 
profileName=os.path.splitext(profile)[0]))
        except WindowsError:
                pass
+       # Manually set certain options (thankfully, it is cached already, so 
it'll be saved when the app module dies).
+       SPLConfigPool[0]["General"]["TimeHourAnnounce"] = True
        # 7.0: Store the config as a dictionary.
        # This opens up many possibilities, including config caching, loading 
specific sections only and others (the latter saves memory).
        SPLConfig = dict(SPLConfigPool[0])
@@ -961,7 +963,8 @@ class SPLConfigDialog(gui.SettingsDialog):
                sizer.Add(self.libScanList)
                settingsSizer.Add(sizer, border=10, flag=wx.BOTTOM)
 
-               
self.hourAnnounceCheckbox=wx.CheckBox(self,wx.NewId(),label="Include &hours 
when announcing track or playlist duration")
+               # Translators: the label for a setting in SPL add-on settings 
to announce time including hours.
+               
self.hourAnnounceCheckbox=wx.CheckBox(self,wx.NewId(),label=_("Include &hours 
when announcing track or playlist duration"))
                
self.hourAnnounceCheckbox.SetValue(SPLConfig["General"]["TimeHourAnnounce"])
                settingsSizer.Add(self.hourAnnounceCheckbox, 
border=10,flag=wx.BOTTOM)
 

diff --git a/readme.md b/readme.md
index ec44769..3a15ed7 100755
--- a/readme.md
+++ b/readme.md
@@ -177,6 +177,7 @@ If you are using Studio on a touchscreen computer running 
Windows 8 or later and
 * In add-on settings dialog, the controls used to toggle announcement of 
scheduled time, listener count, cart name and track name has been moved to a 
dedicated status announcements dialog (select status announcement button to 
open this dialog).
 * Added a new setting in add-on settings dialog to let NVDA play beep for 
different track categories when moving between tracks in playlist viewer.
 * It is no longer required to stay in the playlist viewer window in order to 
obtain time announcements such as remaining time for the track and broadcaster 
time.
+* When announcing time such as remaining time for the playing track, hours are 
also announced.
 * In encoders, pressing Control+NVDA+0 will present encoder settings dialog 
for configuring various options such as stream label, focusing to Studio when 
connected and so on.
 * In encoders, it is now possible to turn off connection progress tone 
(configurable from encoder settings dialog).

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:

  • » commit/StationPlaylist: josephsl: Hour announcement for time announcement commands are now honored. - commits-noreply