Browse Source

[generic] Support Vine embeds (#8817)

totalwebcasting
Yen Chi Hsuan 9 years ago
parent
commit
088e1aac59
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      youtube_dl/extractor/generic.py

+ 8
- 0
youtube_dl/extractor/generic.py View File

@ -1909,6 +1909,14 @@ class GenericIE(InfoExtractor):
self._proto_relative_url(unescapeHTML(mobj.group(1))),
'AdobeTVVideo')
# Look for Vine embeds
mobj = re.search(
r'<iframe[^>]+src=[\'"]((?:https?:)?//(?:www\.)?vine\.co/v/[^/]+/embed/(?:simple|postcard))',
webpage)
if mobj is not None:
return self.url_result(
self._proto_relative_url(unescapeHTML(mobj.group(1))), 'Vine')
def check_video(vurl):
if YoutubeIE.suitable(vurl):
return True


Loading…
Cancel
Save