diff options
| author | Rogério Brito <rbrito@ime.usp.br> | 2013-10-19 14:19:25 -0300 | 
|---|---|---|
| committer | Rogério Brito <rbrito@ime.usp.br> | 2013-10-19 14:19:25 -0300 | 
| commit | 50a6150ed9a0d5af39c27b5dba1e06deadd767cf (patch) | |
| tree | 10eb6e811b306f914a4098d455101d76282a9193 /youtube_dl/extractor/xhamster.py | |
| parent | 8ed6b34477367ff2900a0e8b3628056188598fe8 (diff) | |
extractor: Set age limit on some adult-related extractors.
More age limit of videos for adult-related sites.
Note that, for redtube, I explicitly left the variable containing the age
limit, since the comment justifying the age limit is a good thing to have.
That being said, I included the age limit field on the test, to better
reflect what the information extractor does (even if it may not break the
automated tests).
Signed-off-by: Rogério Brito <rbrito@ime.usp.br>
Diffstat (limited to 'youtube_dl/extractor/xhamster.py')
| -rw-r--r-- | youtube_dl/extractor/xhamster.py | 9 | 
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py index 361619694..f060d9066 100644 --- a/youtube_dl/extractor/xhamster.py +++ b/youtube_dl/extractor/xhamster.py @@ -19,7 +19,8 @@ class XHamsterIE(InfoExtractor):          u'info_dict': {              u"upload_date": u"20121014",               u"uploader_id": u"Ruseful2011",  -            u"title": u"FemaleAgent Shy beauty takes the bait" +            u"title": u"FemaleAgent Shy beauty takes the bait", +            u"age_limit": 18,          }      },      { @@ -29,7 +30,8 @@ class XHamsterIE(InfoExtractor):          u'info_dict': {              u"upload_date": u"20130914",               u"uploader_id": u"jojo747400",  -            u"title": u"Britney Spears  Sexy Booty" +            u"title": u"Britney Spears  Sexy Booty", +            u"age_limit": 18,          }      }] @@ -80,5 +82,6 @@ class XHamsterIE(InfoExtractor):              'description': video_description,              'upload_date': video_upload_date,              'uploader_id': video_uploader_id, -            'thumbnail': video_thumbnail +            'thumbnail': video_thumbnail, +            'age_limit': 18,          }]  | 
