aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/spankwire.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2013-10-28 01:50:17 -0400
committerFilippo Valsorda <filippo.valsorda@gmail.com>2013-10-28 01:50:17 -0400
commit750e9833b83c6e17a4efa8d5dac5b3cd848f4603 (patch)
treee9380854bb2d946aae957507cea63a09adc6d76d /youtube_dl/extractor/spankwire.py
parent82f0ac657c0399659863b0bdec3afea2020ca5a9 (diff)
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
Diffstat (limited to 'youtube_dl/extractor/spankwire.py')
-rw-r--r--youtube_dl/extractor/spankwire.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/spankwire.py b/youtube_dl/extractor/spankwire.py
index f0d5009c7..32df0a7fb 100644
--- a/youtube_dl/extractor/spankwire.py
+++ b/youtube_dl/extractor/spankwire.py
@@ -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,
}