Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to stop to go asleep by user interaction while audio volume is reduced #14

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
6 changes: 3 additions & 3 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.sleeptimer"
name="Sleep Timer"
version="2.0.6"
version="2.3.4"
provider-name="enen92, Solo0815">
<requires>
<import addon="xbmc.addon" version="14.0.0"/>
<import addon="xbmc.python" version="2.19.0"/>
<import addon="xbmc.python" version="3.0.0"/>
</requires>
<extension point="xbmc.service" library="service.py" start="login"/>
<extension point="xbmc.addon.metadata">
Expand All @@ -16,6 +16,6 @@
<forum>http://forum.kodi.tv/showthread.php?tid=211971</forum>
<source>https://github.com/enen92/service.sleeptimer</source>
<platform>all</platform>
<license>GNU GENERAL PUBLIC LICENSE. Version 2, June 1991</license>
<license>GPL-2.0-only</license>
</extension>
</addon>
70 changes: 39 additions & 31 deletions resources/language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -16,116 +16,124 @@ msgstr ""

msgctxt "#30000"
msgid "Sleep Timer"
""
msgstr ""

msgctxt "#30001"
msgid "Cancel to continue playing"
""
msgstr ""

msgctxt "#30002"
msgid "Service check time (minutes)"
""
msgstr ""

msgctxt "#30003"
msgid "Waiting time for the dialog (before stop) (seconds)"
""
msgstr ""

msgctxt "#30004"
msgid "Slow mute audio before stop playing"
""
msgstr ""

msgctxt "#30005"
msgid "General"
""
msgstr ""

msgctxt "#30006"
msgid "Time between 1% volume change (millisec)"
""
msgid "Time it takes to reach 0% volume (minutes)"
msgstr ""

msgctxt "#30007"
msgid "Next check time if dialog is cancelled (minutes)"
""
msgstr ""

msgctxt "#30008"
msgid "Enable Screensaver after stopping"
""
msgstr ""

msgctxt "#30009"
msgid "Audio/Video Supervision settings"
""
msgstr ""

msgctxt "#30010"
msgid "Enable Video Supervision"
""
msgstr ""

msgctxt "#30011"
msgid "Enable Audio Supervision"
""
msgstr ""

msgctxt "#30012"
msgid "Maximum Playing time (minutes) before asking to stop"
""
msgstr ""

msgctxt "#30013"
msgid "Video Playbacktime"
""
msgstr ""

msgctxt "#30014"
msgid "Audio Playbacktime"
""
msgstr ""

msgctxt "#30015"
msgid "Debug"
""
msgstr ""

msgctxt "#30016"
msgid "Debug mode"
""
msgid "Debug mode (overwrites some settings!)"
msgstr ""

msgctxt "#30017"
msgid "'Enable' debugging sets:"
""
msgstr ""

msgctxt "#30018"
msgid "Audio and Video-Check enabled"
""
msgstr ""

msgctxt "#30019"
msgid "Service check time (minutes): '1'"
""
msgstr ""

msgctxt "#30020"
msgid "Waiting time for the dialog (before stop) (seconds): '30'"
""
msgstr ""

msgctxt "#30021"
msgid "It doesn't matter, what you set in the other Tabs!"
""
msgstr ""

msgctxt "#30022"
msgid "Execute custom cmd after playback stop"
""
msgstr ""

msgctxt "#30023"
msgid "Custom CMD"
""
msgstr ""

msgctxt "#30024"
msgid "Supervision Mode"
""
msgstr ""

msgctxt "#30025"
msgid "Hour start (eg. 23:00)"
""
msgstr ""

msgctxt "#30026"
msgid "Hour supervision end (eg. 03:20)"
""
msgstr ""

msgctxt "#30027"
msgid "Always"
""
msgstr ""

msgctxt "#30028"
msgid "Specific Time"
""
msgstr ""

msgctxt "#30029"
msgid "Set the minimum volume %"
msgstr ""

msgctxt "#30030"
msgid "Alternative mode (user interaction is detected differently)"
msgstr ""
8 changes: 6 additions & 2 deletions resources/language/Portuguese/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ msgid "General"
msgstr "Geral"

msgctxt "#30006"
msgid "Time between 1% volume change (millisec)"
msgstr "Tempo entre a alteração de 1% volume (millisec)"
msgid "Time it takes to reach 0% volume (minutes)"
msgstr "Tempo que leva para atingir o volume de 0% (minutos)"

msgctxt "#30007"
msgid "Next check time if dialog is cancelled (minutes)"
Expand Down Expand Up @@ -128,3 +128,7 @@ msgstr "Sempre"
msgctxt "#30028"
msgid "Specific Time"
msgstr "Tempo especifico"

msgctxt "#30029"
msgid "Set the minimum volume %"
msgstr "Defina o volume mínimo %"
13 changes: 8 additions & 5 deletions resources/settings.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<category label="30005">
<setting id="check_time" label="30002" default="5" type="slider" range="1,5,120" option="int"/>
<setting id="check_time" label="30002" default="1" type="slider" range="1,5,120" option="int"/>
<setting id="waiting_time_dialog" label="30003" type="slider" default="60" range="30,5,180" option="int"/>
<setting id="audio_change" label="30004" type="bool" default="true" visible="true"/>
<setting id="audio_change_rate" label="30006" enable="eq(-1,true)" type="slider" default="500" range="50,50,3000" option="int"/>
<setting id="audio_interval_length" label="30006" enable="eq(-1,true)" type="slider" default="1" range="1,1,120" option="int"/>
<setting id="mute_volume" label="30029" enable="eq(-2,true)" type="slider" default="10" range="1,1,100" visible="true" option="int"/>
<setting id="check_time_next" label="30007" type="slider" default="30" range="15,10,120" option="int"/>
<setting id="enable_screensaver" label="30008" type="bool" default="false" visible="true"/>
<setting id="custom_cmd" label="30022" type="bool" default="false" visible="true"/>
Expand All @@ -14,14 +15,16 @@
<setting id="video_enable" label="30010" type="bool" default="true" visible="true"/>
<setting id="audio_enable" label="30011" type="bool" default="true" visible="true"/>
<setting label="30012" type="lsep"/>
<setting id="max_time_video" label="30013" default="150" enable="eq(-3,true)" type="slider" range="30,5,420" option="int"/>
<setting id="max_time_audio" label="30014" default="150" enable="eq(-3,true)" type="slider" range="30,5,420" option="int"/>
<setting id="max_time_video" label="30013" default="45" enable="eq(-3,true)" type="number" />
<setting id="max_time_audio" label="30014" default="45" enable="eq(-3,true)" type="number" />
<setting label="30024" type="lsep"/>
<setting id="supervision_mode" label="30024" type="enum" default="0" values="30027|30028"/>
<setting id="supervision_mode" label="30024" type="enum" default="0" lvalues="30027|30028"/>
<setting label="30025" type="text" id="hour_start_sup" visible="eq(-1,1)" default="00:00"/>
<setting label="30026" type="text" id="hour_end_sup" visible="eq(-2,1)" default="00:00"/>
</category>
<category label="30015">
<setting id="alternativemode" label="30030" type="bool" default="false" visible="true"/>
<setting type="sep"/>
<setting id="debug_mode" label="30016" type="bool" default="false" visible="true"/>
<setting label="30017" type="lsep" enable="eq(-1,true)"/>
<setting type="sep"/>
Expand Down
Loading