From f2d3d12e2b36d74bd9abedeb0f2c3a81a10329a5 Mon Sep 17 00:00:00 2001 From: neodc Date: Wed, 14 May 2014 02:16:19 +0200 Subject: [PATCH] Fix --- index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.php b/index.php index 33118ab..35c7dae 100755 --- a/index.php +++ b/index.php @@ -100,8 +100,7 @@ foreach ($playlists as $p) { // we have to fetch every video in batches of 50. $allvids = array(); for ($i = 0; $i < count($allitems); $i = $i + 50) { - $j = isset($allitems[$i + 50]) ? $i + 50 : (count($allitems) - 1) % 50; - $rvids = get_real_videos(array_slice($allitems, $i, $j)); + $rvids = get_real_videos(array_slice($allitems, $i, 50)); if ($rvids) { foreach ($rvids as $r) { $allvids[] = $r;