projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b24f347
)
[redtube] add age_limit
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 6 Oct 2013 14:39:35 +0000
(16:39 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 6 Oct 2013 14:39:35 +0000
(16:39 +0200)
youtube_dl/extractor/redtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/redtube.py
b/youtube_dl/extractor/redtube.py
index bb19b898a4e76a8fe5e7f694a1399d94d6731d2a..365aade564bd4f423317d427b3070c91e3e22ad3 100644
(file)
--- a/
youtube_dl/extractor/redtube.py
+++ b/
youtube_dl/extractor/redtube.py
@@
-30,9
+30,14
@@
class RedTubeIE(InfoExtractor):
r'<h1 class="videoTitle slidePanelMovable">(.+?)</h1>',
webpage, u'title')
+ # No self-labeling, but they describe themselves as
+ # "Home of Videos Porno"
+ age_limit = 18
+
return {
- 'id': video_id,
- 'url': video_url,
- 'ext': video_extension,
- 'title': video_title,
+ 'id': video_id,
+ 'url': video_url,
+ 'ext': video_extension,
+ 'title': video_title,
+ 'age_limit': age_limit,
}