From 050b52baf9e90f0b25b8354182389119f59e3d4a Mon Sep 17 00:00:00 2001 From: Alba Mendez Date: Sat, 17 Sep 2022 17:26:02 +0200 Subject: [PATCH] rename rtve.es:alacarta to rtve.es:play --- youtube_dl/extractor/extractors.py | 2 +- youtube_dl/extractor/rtve.py | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 751fc38b6..c0fb3815b 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -1044,7 +1044,7 @@ from .rtl2 import ( ) from .rtp import RTPIE from .rts import RTSIE -from .rtve import RTVEALaCartaIE, RTVELiveIE, RTVEInfantilIE, RTVELiveIE, RTVETelevisionIE +from .rtve import RTVEPlayIE, RTVEInfantilIE, RTVELiveIE, RTVETelevisionIE from .rtvnh import RTVNHIE from .rtvs import RTVSIE from .ruhd import RUHDIE diff --git a/youtube_dl/extractor/rtve.py b/youtube_dl/extractor/rtve.py index 9fd591cee..2686b6e37 100644 --- a/youtube_dl/extractor/rtve.py +++ b/youtube_dl/extractor/rtve.py @@ -22,9 +22,9 @@ from ..utils import ( _bytes_to_chr = (lambda x: x) if sys.version_info[0] == 2 else (lambda x: map(chr, x)) -class RTVEALaCartaIE(InfoExtractor): - IE_NAME = 'rtve.es:alacarta' - IE_DESC = 'RTVE a la carta' +class RTVEPlayIE(InfoExtractor): + IE_NAME = 'rtve.es:play' + IE_DESC = 'RTVE Play' _VALID_URL = r'https?://(?:www\.)?rtve\.es/(playz?/videos|filmoteca)/[^/]+/[^/]+/(?P\d+)' _TESTS = [{ @@ -183,7 +183,7 @@ class RTVEALaCartaIE(InfoExtractor): for s in subs) -class RTVEInfantilIE(RTVEALaCartaIE): +class RTVEInfantilIE(RTVEPlayIE): IE_NAME = 'rtve.es:infantil' IE_DESC = 'RTVE infantil' _VALID_URL = r'https?://(?:www\.)?rtve\.es/infantil/serie/[^/]+/video/[^/]+/(?P[0-9]+)/' @@ -202,7 +202,7 @@ class RTVEInfantilIE(RTVEALaCartaIE): }] -class RTVELiveIE(RTVEALaCartaIE): +class RTVELiveIE(RTVEPlayIE): IE_NAME = 'rtve.es:live' IE_DESC = 'RTVE.es live streams' _VALID_URL = r'https?://(?:www\.)?rtve\.es/play/videos/directo/(?P.+)' @@ -255,4 +255,4 @@ class RTVETelevisionIE(InfoExtractor): raise ExtractorError( 'The webpage doesn\'t contain any video', expected=True) - return self.url_result(alacarta_url, ie=RTVEALaCartaIE.ie_key()) + return self.url_result(alacarta_url, ie=RTVEPlayIE.ie_key())