Skip to content
This repository has been archived by the owner on Oct 30, 2022. It is now read-only.

Fix Error when using default logging settings #123

Merged
merged 2 commits into from
Apr 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 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="plugin.program.openwizard" name="[COLOR limegreen]Open[/COLOR]Wizard" version="2.0.6" provider-name="drinfernoo, slamious">
<addon id="plugin.program.openwizard" name="[COLOR limegreen]Open[/COLOR]Wizard" version="2.0.7" provider-name="drinfernoo, slamious">
<requires>
<import addon="xbmc.python" version="3.0.0" />
<import addon="script.module.requests" />
Expand All @@ -21,6 +21,8 @@
<reuselanguageinvoker>false</reuselanguageinvoker>
<source>https://www.github.com/a4k-openproject/plugin.program.openwizard/</source>
<news>
2.0.7
- Fix Error when using default log settings
2.0.6
- Fix regex for formatting tags
- Fix theme selection after build install
Expand Down
2 changes: 1 addition & 1 deletion resources/libs/common/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def check_log():
elif CONFIG.CLEANWIZLOGBY == '1': # By Size
maxsize = CONFIG.MAXWIZSIZE[int(float(CONFIG.CLEANSIZE))]*1024
if os.path.getsize(CONFIG.WIZLOG) >= maxsize:
start = len(lines)/2
start = int(len(lines)/2)
newfile = lines[start:]
tools.write_to_file(CONFIG.WIZLOG, '\n'.join(newfile))
elif CONFIG.CLEANWIZLOGBY == '2': # By Lines
Expand Down