From f46b31efb53ae4310142f83d60cd0216cea49681 Mon Sep 17 00:00:00 2001
From: Kegan <kegan@kegan.info>
Date: Sat, 23 Apr 2011 14:56:06 +0800
Subject: [PATCH] Added ability to download worst quality video file only.

---
 youtube-dl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/youtube-dl b/youtube-dl
index 12a8eddbb..9bb7cdbfc 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -1094,6 +1094,8 @@ class YoutubeIE(InfoExtractor):
                 return
             if req_format is None:
                 video_url_list = [(existing_formats[0], url_map[existing_formats[0]])] # Best quality
+            elif req_format is '0':
+                video_url_list = [(existing_formats[len(existing_formats)-1], url_map[existing_formats[len(existing_formats)-1]])] # worst quality
             elif req_format == '-1':
                 video_url_list = [(f, url_map[f]) for f in existing_formats] # All formats
             else: