Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
fix for failed download with no subtitles when requested
Browse files Browse the repository at this point in the history
update
  • Loading branch information
przemyslawpluta committed Aug 1, 2014
1 parent 19c13af commit 038b1fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/youtube-dl.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ var isWin = /^win/.test(process.platform);
*/
function reIndexOf(arr, rx) {
var i;
for (i in arr) {
if (arr[i].toString().match(rx)) { return i; }
for (i = 0; i < arr.length; i++) {
if (arr[i].toString().match(rx)) { return i; }
}
return -1;
}
Expand Down

0 comments on commit 038b1fd

Please sign in to comment.