diff options
author | Ricardo Garcia <[email protected]> | 2009-04-02 20:23:13 +0200 |
---|---|---|
committer | Ricardo Garcia <[email protected]> | 2010-10-31 11:24:04 +0100 |
commit | f995f7127c42b1f912bfbfd9f35b22267c9bf3e7 (patch) | |
tree | d2a3e4b2826063cf30e1874871a3817ee3c88ba7 | |
parent | e54930cf713e2e7b3117d94e1467f0acbfedf375 (diff) | |
download | youtube-dl-f995f7127c42b1f912bfbfd9f35b22267c9bf3e7.tar.gz youtube-dl-f995f7127c42b1f912bfbfd9f35b22267c9bf3e7.zip |
Remove some extra whitespace
-rwxr-xr-x | youtube-dl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/youtube-dl b/youtube-dl index bf6973480..ba760da47 100755 --- a/youtube-dl +++ b/youtube-dl @@ -18,7 +18,7 @@ import time import urllib import urllib2 -std_headers = { +std_headers = { 'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5', 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'Accept': 'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', @@ -729,7 +729,7 @@ class YoutubeSearchIE(InfoExtractor): _MORE_PAGES_INDICATOR = r'>Next</a>' _youtube_ie = None - def __init__(self, youtube_ie, downloader=None): + def __init__(self, youtube_ie, downloader=None): InfoExtractor.__init__(self, downloader) self._youtube_ie = youtube_ie @@ -752,11 +752,11 @@ class YoutubeSearchIE(InfoExtractor): prefix, query = query.split(':') prefix = prefix[8:] - if prefix == '': + if prefix == '': return self._download_n_results(query, 1) - elif prefix == 'all': + elif prefix == 'all': return self._download_n_results(query, -1) - else: + else: try: n = int(prefix) if n <= 0: |