Fixed some minor typos

This commit is contained in:
Thomas Christlieb 2017-02-15 23:02:45 +01:00
parent 3021cf83b7
commit 4ccac9a834
2 changed files with 3 additions and 3 deletions

View File

@ -252,7 +252,7 @@ class YoutubeDL(object):
- "detect_or_warn": check whether we can do anything - "detect_or_warn": check whether we can do anything
about it, warn otherwise (default) about it, warn otherwise (default)
source_address: (Experimental) Client-side IP address to bind to. source_address: (Experimental) Client-side IP address to bind to.
call_home: Boolean, true iff we are allowed to contact the call_home: Boolean, true if we are allowed to contact the
youtube-dl servers for debugging. youtube-dl servers for debugging.
sleep_interval: Number of seconds to sleep before each download when sleep_interval: Number of seconds to sleep before each download when
used alone or a lower bound of a range for randomized used alone or a lower bound of a range for randomized
@ -620,7 +620,7 @@ class YoutubeDL(object):
return None return None
def _match_entry(self, info_dict, incomplete): def _match_entry(self, info_dict, incomplete):
""" Returns None iff the file should be downloaded """ """ Returns None if the file should be downloaded """
video_title = info_dict.get('title', info_dict.get('id', 'video')) video_title = info_dict.get('title', info_dict.get('id', 'video'))
if 'title' in info_dict: if 'title' in info_dict:

View File

@ -2310,7 +2310,7 @@ def encode_data_uri(data, mime_type):
def age_restricted(content_limit, age_limit): def age_restricted(content_limit, age_limit):
""" Returns True iff the content should be blocked """ """ Returns True if the content should be blocked """
if age_limit is None: # No limit set if age_limit is None: # No limit set
return False return False