projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[videa] Add support for videa embeds
[youtube-dl]
/
youtube_dl
/
extractor
/
videa.py
diff --git
a/youtube_dl/extractor/videa.py
b/youtube_dl/extractor/videa.py
index 039add86b2d99aa73e886e2e00bab97748a33ded..311df58f4a057ecfd128e76ebfe6f5a692ea0c23 100644
(file)
--- a/
youtube_dl/extractor/videa.py
+++ b/
youtube_dl/extractor/videa.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,
@@
-43,6
+45,12
@@
class VideaIE(InfoExtractor):
'only_matching': True,
}]
'only_matching': True,
}]
+ @staticmethod
+ def _extract_urls(webpage):
+ return [url for _, url in re.findall(
+ r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//videa\.hu/player\?.*?\bv=.+?)\1',
+ webpage)]
+
def _real_extract(self, url):
video_id = self._match_id(url)
def _real_extract(self, url):
video_id = self._match_id(url)