aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/rtve.py
diff options
context:
space:
mode:
authorÁlvaro Mondéjar Rubio <[email protected]>2021-08-18 13:37:32 +0200
committerÁlvaro Mondéjar Rubio <[email protected]>2021-08-18 13:37:32 +0200
commit10832d0da4e0c22a1a5d1869c1ec2aa9b50235df (patch)
treededb9feae72318812d9b2fc4643f5f23edd48ecd /youtube_dl/extractor/rtve.py
parenta8035827177d6b59aca03bd717acb6a9bdd75ada (diff)
downloadyoutube-dl-10832d0da4e0c22a1a5d1869c1ec2aa9b50235df.tar.gz
youtube-dl-10832d0da4e0c22a1a5d1869c1ec2aa9b50235df.zip
[rtve:alacarta] Add support for 'play' path subpart in URL
Diffstat (limited to 'youtube_dl/extractor/rtve.py')
-rw-r--r--youtube_dl/extractor/rtve.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/youtube_dl/extractor/rtve.py b/youtube_dl/extractor/rtve.py
index d2fb754cf..b6f3be689 100644
--- a/youtube_dl/extractor/rtve.py
+++ b/youtube_dl/extractor/rtve.py
@@ -27,7 +27,7 @@ _bytes_to_chr = (lambda x: x) if sys.version_info[0] == 2 else (lambda x: map(ch
class RTVEALaCartaIE(InfoExtractor):
IE_NAME = 'rtve.es:alacarta'
IE_DESC = 'RTVE a la carta'
- _VALID_URL = r'https?://(?:www\.)?rtve\.es/(m/)?(alacarta/videos|filmoteca)/[^/]+/[^/]+/(?P<id>\d+)'
+ _VALID_URL = r'https?://(?:www\.)?rtve\.es/(m/)?((alacarta|play)/videos|filmoteca)/[^/]+/[^/]+/(?P<id>\d+)'
_TESTS = [{
'url': 'http://www.rtve.es/alacarta/videos/balonmano/o-swiss-cup-masculina-final-espana-suecia/2491869/',
@@ -41,6 +41,17 @@ class RTVEALaCartaIE(InfoExtractor):
},
'expected_warnings': ['Failed to download MPD manifest', 'Failed to download m3u8 information'],
}, {
+ 'url': 'http://www.rtve.es/play/videos/balonmano/o-swiss-cup-masculina-final-espana-suecia/2491869/',
+ 'md5': '1d49b7e1ca7a7502c56a4bf1b60f1b43',
+ 'info_dict': {
+ 'id': '2491869',
+ 'ext': 'mp4',
+ 'title': 'Balonmano - Swiss Cup masculina. Final: España-Suecia',
+ 'duration': 5024.566,
+ 'series': 'Balonmano',
+ },
+ 'expected_warnings': ['Failed to download MPD manifest', 'Failed to download m3u8 information'],
+ }, {
'note': 'Live stream',
'url': 'http://www.rtve.es/alacarta/videos/television/24h-live/1694255/',
'info_dict': {