diff options
author | mkaay <mkaay@mkaay.de> | 2010-08-11 23:37:33 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-08-11 23:37:33 +0200 |
commit | bf8b8dbdebaf4ee41a687cdcf958bc20a4a53926 (patch) | |
tree | 9f086ee3dea2829f80348f8457d945d87c1d2361 /pyLoadCore.py | |
parent | fixes (diff) | |
download | pyload-bf8b8dbdebaf4ee41a687cdcf958bc20a4a53926.tar.xz |
ShareonlineBiz free+premium, DDLMusicOrg working, SerienjunkiesOrg fix, FileDatabase fix, other fixes
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 6 |
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',) |