浏览代码

Off-by-one

Zachary Kotlarek 12 年之前
父节点
当前提交
aed7bc1e02
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      yt/subscribe.pl

+ 1 - 1
yt/subscribe.pl

@@ -704,7 +704,7 @@ sub findVideos($) {
 
 		# Loop if there are results left to fetch
 		$index += $BATCH_SIZE;
-		if (defined($itemCount) && $itemCount > $index) {
+		if (defined($itemCount) && $itemCount >= $index) {
 
 			# But don't go past the max supported index
 			if ($index <= $MAX_INDEX) {