projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[veoh] Add support for embed URLs
[youtube-dl]
/
youtube_dl
/
extractor
/
vzaar.py
diff --git
a/youtube_dl/extractor/vzaar.py
b/youtube_dl/extractor/vzaar.py
index b270f08d1e8796889ac54e4885c2234e4e7eb46b..02fcd52c74c268ea8274359af46810a6beeb0636 100644
(file)
--- a/
youtube_dl/extractor/vzaar.py
+++ b/
youtube_dl/extractor/vzaar.py
@@
-1,6
+1,8
@@
# coding: utf-8
from __future__ import unicode_literals
# coding: utf-8
from __future__ import unicode_literals
+import re
+
from .common import InfoExtractor
from ..utils import (
int_or_none,
from .common import InfoExtractor
from ..utils import (
int_or_none,
@@
-28,6
+30,12
@@
class VzaarIE(InfoExtractor):
},
}]
},
}]
+ @staticmethod
+ def _extract_urls(webpage):
+ return re.findall(
+ r'<iframe[^>]+src=["\']((?:https?:)?//(?:view\.vzaar\.com)/[0-9]+)',
+ webpage)
+
def _real_extract(self, url):
video_id = self._match_id(url)
video_data = self._download_json(
def _real_extract(self, url):
video_id = self._match_id(url)
video_data = self._download_json(