Skip to content

Commit 5e7fb21

Browse files
authored
Merge pull request #2427 from jbinkley60/matrix
[service.autostop] 1.0.6
2 parents 4cdf925 + 878c734 commit 5e7fb21

File tree

5 files changed

+24
-2
lines changed

5 files changed

+24
-2
lines changed

service.autostop/addon.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="service.autostop" name="Autostop" version="1.0.5" provider-name="jbinkley60">
2+
<addon id="service.autostop" name="Autostop" version="1.0.6" provider-name="jbinkley60">
33
<requires>
44
<import addon="xbmc.python" version="3.0.0"/>
55
</requires>

service.autostop/changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.0.6
2+
3+
- Added option setting to reset sleep timer back to 0 after sleep
4+
timer stops playback.
5+
16
1.0.5
27

38
- Added 300 and 600 second options for playback stop notification.

service.autostop/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ def stopPlayback(notifymsg, logmsg): # Function to st
156156
dialog.notification(notifymsg, mgenlog, addon_icon, 5000)
157157
if settings('screensaver') == 'true': # Active screensaver if option selected
158158
xbmc.executebuiltin('ActivateScreensaver')
159+
if settings('asreset') == 'true': # Reset sleep timer if option selected
160+
settings('plstop', '0')
161+
mgenlog = "Autostop sleep timer reset enabled. Sleep timer reset to 0."
162+
xbmc.log(mgenlog, xbmc.LOGINFO)
159163
settings('notifyset', 'no') # Clear notification flag
160164
settings('varextnotify', 'no') # Clear notification flag
161165
except:

service.autostop/resources/language/resource.language.en_gb/strings.po

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ msgctxt "#30321"
104104
msgid "Autostop sleep timer and notification timer cannot be equal. Notification timer set to 300 seconds. "
105105
msgstr ""
106106

107+
msgctxt "#30322"
108+
msgid "Sleep Timer Reset"
109+
msgstr ""
110+
107111
msgctxt "#30501"
108112
msgid "Automatically stop paused video or music in minutes. 0 = never automatically stop paused playback."
109113
msgstr ""
@@ -134,4 +138,8 @@ msgstr ""
134138

135139
msgctxt "#30508"
136140
msgid "Adds option to stop playback when the sleep timer extension option is set to variable. Default is disabled."
137-
msgstr ""
141+
msgstr ""
142+
143+
msgctxt "#30509"
144+
msgid "Enabling resets sleep timer back to 0 after playback stopped by sleep timer. Default is disabled."
145+
msgstr ""

service.autostop/resources/settings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@
101101
</constraints>
102102
<control type="spinner" format="string"/>
103103
</setting>
104+
<setting id="asreset" type="boolean" label="30322" help="30509">
105+
<level>0</level>
106+
<default>false</default>
107+
<control type="toggle"/>
108+
</setting>
104109
<setting id="screensaver" type="boolean" label="30302" help="30502">
105110
<level>0</level>
106111
<default>false</default>

0 commit comments

Comments
 (0)