summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-11 23:37:33 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-11 23:37:33 +0200
commitbf8b8dbdebaf4ee41a687cdcf958bc20a4a53926 (patch)
tree9f086ee3dea2829f80348f8457d945d87c1d2361 /pyLoadCore.py
parentfixes (diff)
downloadpyload-bf8b8dbdebaf4ee41a687cdcf958bc20a4a53926.tar.xz
ShareonlineBiz free+premium, DDLMusicOrg working, SerienjunkiesOrg fix, FileDatabase fix, other fixes
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 644ccf925..9bce296a5 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -543,13 +543,15 @@ class ServerMethods():
self.add_package(th.name, [th.name], 1)
- def get_log(self):
+ def get_log(self, offset=0):
filename = join(self.core.config['log']['log_folder'], 'log.txt')
try:
fh = open(filename, "r")
lines = fh.readlines()
fh.close()
- return lines
+ if offset >= len(lines):
+ return None
+ return lines[offset:]
except:
return ('No log available',)