diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-02 23:22:53 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-02 23:22:53 +0600 |
commit | f3b098fb90b985484d800fcdbfe18add2360e4df (patch) | |
tree | b807a7c882e95152fde389373554540b428fa37c /youtube_dl/extractor/europa.py | |
parent | af17794c654bd24bbd5f47997596430b201ea08e (diff) |
[europa] Add support for audio URLs
Diffstat (limited to 'youtube_dl/extractor/europa.py')
-rw-r--r-- | youtube_dl/extractor/europa.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/europa.py b/youtube_dl/extractor/europa.py index 02ba8d63c..9e33cacff 100644 --- a/youtube_dl/extractor/europa.py +++ b/youtube_dl/extractor/europa.py @@ -14,7 +14,7 @@ from ..utils import ( class EuropaIE(InfoExtractor): - _VALID_URL = r'https?://ec\.europa\.eu/avservices/video/player\.cfm\?.*?\bref=(?P<id>[A-Za-z0-9]+)' + _VALID_URL = r'https?://ec\.europa\.eu/avservices/(?:video/player|audio/audioDetails)\.cfm\?.*?\bref=(?P<id>[A-Za-z0-9-]+)' _TESTS = [{ 'url': 'http://ec.europa.eu/avservices/video/player.cfm?ref=I107758', 'md5': '574f080699ddd1e19a675b0ddf010371', @@ -32,6 +32,9 @@ class EuropaIE(InfoExtractor): }, { 'url': 'http://ec.europa.eu/avservices/video/player.cfm?sitelang=en&ref=I107786', 'only_matching': True, + }, { + 'url': 'http://ec.europa.eu/avservices/audio/audioDetails.cfm?ref=I-109295&sitelang=en', + 'only_matching': True, }] def _real_extract(self, url): |