Skip to content

Commit

Permalink
[v2.0.19] - Added "refresh on start" setting for custom guides
Browse files Browse the repository at this point in the history
  • Loading branch information
bluezed committed Oct 11, 2015
1 parent f42d7ce commit a76aafb
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.ftvguide" name="FTV Guide" version="2.0.18" provider-name="rayw1986, bluezed">
<addon id="script.ftvguide" name="FTV Guide" version="2.0.19" provider-name="rayw1986, bluezed">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="script.module.simplejson" version="2.0.10"/>
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--------------------------
FTV Guide - 2.0.19
--------------------------
+ Added "refresh on start" setting for custom guides

--------------------------
FTV Guide - 2.0.18
--------------------------
Expand Down
4 changes: 3 additions & 1 deletion resources/language/English/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ msgctxt "#30148"
msgid "Appearance"
msgstr ""

#empty strings from id 30149 to 30149
msgctxt "#30149"
msgid "Refresh on start"
msgstr ""

msgctxt "#30150"
msgid "Oops, sorry about that!"
Expand Down
4 changes: 3 additions & 1 deletion resources/language/German/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ msgctxt "#30148"
msgid "Appearance"
msgstr "Darstellung"

#empty strings from id 30149 to 30149
msgctxt "#30149"
msgid "Refresh on start"
msgstr "Beim Start aktualisieren"

msgctxt "#30150"
msgid "Oops, sorry about that!"
Expand Down
1 change: 1 addition & 0 deletions resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<setting id="xmltv.type" type="number" enable="false" visible="false"/>
<setting id="xmltv.interval" label="30128" type="enum" default="2" lvalues="30129|30130|30131|30132" visible="!eq(-1,6)" />
<setting id="xmltv.file" label="30103" type="file" visible="eq(-2,6)" />
<setting id="xmltv.refresh" label="30149" type="bool" default="false" visible="eq(-3,6)"/>

<setting id="addons.ini.type" label="30144" type="enum" default="0" lvalues="30143|30142"/>
<setting id="addons.ini.file" label="30145" type="file" visible="eq(-1,1)" />
Expand Down
6 changes: 5 additions & 1 deletion source.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ def _close(self):
self.conn.close()

def _wasSettingsChanged(self, addon):
settingsChanged = False
gType = GuideTypes()
if int(addon.getSetting('xmltv.type')) == gType.CUSTOM_FILE_ID:
settingsChanged = addon.getSetting('xmltv.refresh') == 'true'
else:
settingsChanged = False
noRows = True
count = 0

Expand Down

0 comments on commit a76aafb

Please sign in to comment.