From a685869d0d8edd2f2505a702bca85a15b10b5546 Mon Sep 17 00:00:00 2001 From: William McBrine Date: Wed, 2 Jan 2008 01:18:51 -0500 Subject: [PATCH] Better handling of ItemCount == 0. --- plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.py b/plugin.py index ef5a2a5..7535cef 100644 --- a/plugin.py +++ b/plugin.py @@ -91,10 +91,10 @@ class Plugin(object): index += int(query['AnchorOffset'][0]) #foward count - if count > 0: + if count >= 0: files = files[index:index + count] #backwards count - elif count < 0: + else: if index + count < 0: count = -index files = files[index + count:index] -- 2.11.4.GIT