summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRicardo Garcia <[email protected]>2008-07-22 11:41:25 +0200
committerRicardo Garcia <devnull@localhost>2008-07-22 11:41:25 +0200
commit1c5e23021ed23a1d143d7b0a9554574d1e7050fb (patch)
tree69517facb28e9c09395f04345cfaac358dfae5f8
parent0086d1ec32139fab208648d39e9b275ba4a3f942 (diff)
downloadyoutube-dl-1c5e23021ed23a1d143d7b0a9554574d1e7050fb.tar.gz
youtube-dl-1c5e23021ed23a1d143d7b0a9554574d1e7050fb.zip
Improve program documentation
-rwxr-xr-xyoutube-dl5
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube-dl b/youtube-dl
index 1e6b876e1..46d45d37d 100755
--- a/youtube-dl
+++ b/youtube-dl
@@ -67,6 +67,7 @@ class FileDownloader(object):
_ies = []
def __init__(self, params):
+ """Create a FileDownloader object with the given options."""
self._ies = []
self.set_params(params)
@@ -305,7 +306,7 @@ class InfoExtractor(object):
return True
def initialize(self):
- """Initializes an instance (login, etc)."""
+ """Initializes an instance (authentication, etc)."""
if not self._ready:
self._real_initialize()
self._ready = True
@@ -320,10 +321,12 @@ class InfoExtractor(object):
self._downloader = downloader
def to_stdout(self, message):
+ """Print message to stdout if downloader is not in quiet mode."""
if self._downloader is None or not self._downloader.get_params().get('quiet', False):
print message
def to_stderr(self, message):
+ """Print message to stderr."""
sys.stderr.write('%s\n' % message)
def _real_initialize(self):