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

Commit 93db31c

Browse files
authored
Merge pull request #124 from SerpentDrago/patch-3
Fixed Error related to logging (backport from matrix)
2 parents 635f73d + b1fd2bc commit 93db31c

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

addon.xml

Lines changed: 3 additions & 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="plugin.program.openwizard" name="[COLOR limegreen]Open[/COLOR]Wizard" version="1.4.8" provider-name="drinfernoo">
2+
<addon id="plugin.program.openwizard" name="[COLOR limegreen]Open[/COLOR]Wizard" version="1.4.9" provider-name="drinfernoo">
33
<requires>
44
<import addon="xbmc.python" version="2.1.0" />
55
<import addon="script.module.requests" />
@@ -21,6 +21,8 @@
2121
<reuselanguageinvoker>false</reuselanguageinvoker>
2222
<source>https://www.github.com/drinfernoo/plugin.program.openwizard/</source>
2323
<news>
24+
1.4.9
25+
- Fix Error Related to Log
2426
1.4.8
2527
- Fix regex for formatting tags
2628
- Fix theme selection after build install

resources/libs/common/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def check_log():
8383
elif CONFIG.CLEANWIZLOGBY == '1': # By Size
8484
maxsize = CONFIG.MAXWIZSIZE[int(float(CONFIG.CLEANSIZE))]*1024
8585
if os.path.getsize(CONFIG.WIZLOG) >= maxsize:
86-
start = len(lines)/2
86+
start = int(len(lines)/2)
8787
newfile = lines[start:]
8888
tools.write_to_file(CONFIG.WIZLOG, '\n'.join(newfile))
8989
elif CONFIG.CLEANWIZLOGBY == '2': # By Lines

0 commit comments

Comments
 (0)