Add the missing age_limit tags; added a devscript to do a superficial check for porn sites without the age_limit tag in the test

This commit is contained in:
Filippo Valsorda 2013-10-28 01:50:17 -04:00
parent 82f0ac657c
commit 750e9833b8
7 changed files with 59 additions and 4 deletions

View file

@ -22,6 +22,7 @@ class SpankwireIE(InfoExtractor):
u"uploader": u"oreusz",
u"title": u"Buckcherry`s X Rated Music Video Crazy Bitch",
u"description": u"Crazy Bitch X rated music video.",
u"age_limit": 18,
}
}
@ -60,6 +61,8 @@ class SpankwireIE(InfoExtractor):
})
formats.sort(key=lambda format: list(map(lambda s: s.zfill(6), format['format'].split('-'))))
age_limit = self._rta_search(webpage)
return {
'id': video_id,
'uploader': video_uploader,
@ -67,4 +70,5 @@ class SpankwireIE(InfoExtractor):
'thumbnail': thumbnail,
'description': description,
'formats': formats,
'age_limit': age_limit,
}