diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-02-21 09:51:54 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-02-21 09:51:54 +0600 |
commit | 33d4fdabfa0a2e008fe2765ae7b81f9f736c2163 (patch) | |
tree | 31738d71a6973c5ebbcdd09c0db10be916053bdf /youtube_dl/extractor | |
parent | cafcf657a4e16f0bcf90195f8e35bfcce7faad8e (diff) |
[extractor/generic] Add support for ok embeds (#8619)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/generic.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 45adbb7a3..c6bf8d270 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1573,6 +1573,11 @@ class GenericIE(InfoExtractor): if mobj is not None: return self.url_result(mobj.group('url'), 'VK') + # Look for embedded Odnoklassniki player + mobj = re.search(r'<iframe[^>]+?src=(["\'])(?P<url>https?://(?:odnoklassniki|ok)\.ru/videoembed/.+?)\1', webpage) + if mobj is not None: + return self.url_result(mobj.group('url'), 'Odnoklassniki') + # Look for embedded ivi player mobj = re.search(r'<embed[^>]+?src=(["\'])(?P<url>https?://(?:www\.)?ivi\.ru/video/player.+?)\1', webpage) if mobj is not None: |