]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/normalboots.py
1 from . common
import InfoExtractor
2 from . jwplatform
import JWPlatformIE
9 class NormalbootsIE ( InfoExtractor
):
10 _VALID_URL
= r
'https?://(?:www\.)?normalboots\.com/video/(?P<id>[0-9a-z-]*)/?$'
12 'url' : 'http://normalboots.com/video/home-alone-games-jontron/' ,
14 'id' : 'home-alone-games-jontron' ,
16 'title' : 'Home Alone Games - JonTron - NormalBoots' ,
17 'description' : 'Jon is late for Christmas. Typical. Thanks to: Paul Ritchey for Co-Writing/Filming: http://www.youtube.com/user/ContinueShow Michael Azzi for Christmas Intro Animation: http://michafrar.tumblr.com/ Jerrod Waters for Christmas Intro Music: http://www.youtube.com/user/xXJerryTerryXx Casey Ormond for ‘Tense Battle Theme’: \xa0 http://www.youtube.com/Kiamet/' ,
18 'uploader' : 'JonTron' ,
19 'upload_date' : '20140125' ,
23 'skip_download' : True ,
25 'add_ie' : [ 'JWPlatform' ],
28 def _real_extract ( self
, url
):
29 video_id
= self
._ match
_ id
( url
)
30 webpage
= self
._ download
_ webpage
( url
, video_id
)
32 video_uploader
= self
._ html
_ search
_ regex
(
33 r
'Posted\sby\s<a\shref="[A-Za-z0-9/]*">(?P<uploader>[A-Za-z]*)\s</a>' ,
34 webpage
, 'uploader' , fatal
= False )
35 video_upload_date
= unified_strdate ( self
._ html
_ search
_ regex
(
36 r
'<span style="text-transform:uppercase; font-size:inherit;">[A-Za-z]+, (?P<date>.*)</span>' ,
37 webpage
, 'date' , fatal
= False ))
39 jwplatform_url
= JWPlatformIE
._ extract
_u rl
( webpage
)
42 '_type' : 'url_transparent' ,
44 'url' : jwplatform_url
,
45 'ie_key' : JWPlatformIE
. ie_key (),
46 'title' : self
._ og
_ search
_ title
( webpage
),
47 'description' : self
._ og
_ search
_ description
( webpage
),
48 'thumbnail' : self
._ og
_ search
_ thumbnail
( webpage
),
49 'uploader' : video_uploader
,
50 'upload_date' : video_upload_date
,