diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-10-06 16:23:06 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-10-06 16:23:06 +0200 |
commit | cfadd183c4a281e97fba89501d59ee344bcc5978 (patch) | |
tree | 84f0285d42855b3217ee5bc62155bc391676ca68 /youtube_dl/YoutubeDL.py | |
parent | 8dbe9899a985a04690e467510c94c14f3314843b (diff) |
Call extracted property age_limit everywhere
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rw-r--r-- | youtube_dl/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 6258c141e..9ada01bcc 100644 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -313,7 +313,7 @@ class YoutubeDL(object): return u'[download] %s upload date is not in range %s' % (date_from_str(date).isoformat(), dateRange) age_limit = self.params.get('age_limit') if age_limit is not None: - if age_limit < info_dict.get('age_restriction', 0): + if age_limit < info_dict.get('age_limit', 0): return u'Skipping "' + title + '" because it is age restricted' return None |