Skip to content

Commit

Permalink
Check settings before anything else. Fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthirian committed Apr 22, 2013
1 parent 9d99b9c commit 7f9655f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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.filecleaner" name="XBMC File Cleaner" version="3.0.0" provider-name="Anthirian">
<addon id="script.filecleaner" name="XBMC File Cleaner" version="3.0.1" provider-name="Anthirian">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="xbmc.json" version="6.0.0"/>
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 3.0.1
===============
- Fixed bug in setting locale that broke the addon

Version 3.0.0
===============
- Frodo compatibility
Expand Down
4 changes: 2 additions & 2 deletions default.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ class Cleaner:

def __init__(self):
"""Create a Cleaner object that performs regular cleaning of watched videos."""
self.reload_settings()

try:
locale.setlocale(locale.LC_ALL, "English_United Kingdom")
except locale.Error, le:
self.debug("Could not change locale: %s" % le)

self.reload_settings()

service_sleep = 10
ticker = 0
delayed_completed = False
Expand Down

0 comments on commit 7f9655f

Please sign in to comment.