figured out how to make extractors work
This commit is contained in:
parent
0d982b71af
commit
e9ef34058e
@ -968,7 +968,10 @@ from .rtl2 import (
|
|||||||
RTL2YouIE,
|
RTL2YouIE,
|
||||||
RTL2YouSeriesIE,
|
RTL2YouSeriesIE,
|
||||||
)
|
)
|
||||||
from .rtp import RTPIE
|
from .rtp import (
|
||||||
|
RTPIE,
|
||||||
|
RTPPlaylistIE
|
||||||
|
)
|
||||||
from .rts import RTSIE
|
from .rts import RTSIE
|
||||||
from .rtve import RTVEALaCartaIE, RTVELiveIE, RTVEInfantilIE, RTVELiveIE, RTVETelevisionIE
|
from .rtve import RTVEALaCartaIE, RTVELiveIE, RTVEInfantilIE, RTVELiveIE, RTVETelevisionIE
|
||||||
from .rtvnh import RTVNHIE
|
from .rtvnh import RTVNHIE
|
||||||
|
@ -60,8 +60,11 @@ class RTPIE(InfoExtractor):
|
|||||||
}
|
}
|
||||||
|
|
||||||
class RTPPlaylistIE(RTPIE):
|
class RTPPlaylistIE(RTPIE):
|
||||||
_VALID_URL = r'https://www.rtp.pt/play/p510/e401638/aleixo-fm'
|
#_VALID_URL = r'https?://(?:www\.)?rtp\.pt/play/p(?P<program_id>[0-9]+)/(?P<id>[^/?#]+)/?'
|
||||||
|
_VALID_URL = r'1234'
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'entries': [{'id':'hello1', 'url':'https://cdn-ondemand.rtp.pt/nas2.share/wavrss/at3/1904/5786802_292886-1904170925.mp3'}]
|
'_type': 'playlist',
|
||||||
|
'entries':[{'_type':'url', 'url':'https://www.rtp.pt/play/p510/e400299/aleixo-fm'}]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user