projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[eighttracks] PEP8
[youtube-dl]
/
youtube_dl
/
extractor
/
rtp.py
diff --git
a/youtube_dl/extractor/rtp.py
b/youtube_dl/extractor/rtp.py
index 0bed1f1006efa53d80064abd68c16d2689f514d4..7736cabbac6b855be739b8c7521a073ea630f32f 100644
(file)
--- a/
youtube_dl/extractor/rtp.py
+++ b/
youtube_dl/extractor/rtp.py
@@
-8,11
+8,11
@@
from ..utils import js_to_json
class RTPIE(InfoExtractor):
class RTPIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?rtp\.pt/play/p(?P<program_id>[0-9]+)/
e(?P<id>[0-9
]+)/?'
- _TEST
=
{
+ _VALID_URL = r'https?://(?:www\.)?rtp\.pt/play/p(?P<program_id>[0-9]+)/
(?P<id>[^/?#
]+)/?'
+ _TEST
S = [
{
'url': 'http://www.rtp.pt/play/p405/e174042/paixoes-cruzadas',
'info_dict': {
'url': 'http://www.rtp.pt/play/p405/e174042/paixoes-cruzadas',
'info_dict': {
- 'id': '174042',
+ 'id': '
e
174042',
'ext': 'mp3',
'title': 'Paixões Cruzadas',
'description': 'As paixões musicais de António Cartaxo e António Macedo',
'ext': 'mp3',
'title': 'Paixões Cruzadas',
'description': 'As paixões musicais de António Cartaxo e António Macedo',
@@
-21,7
+21,10
@@
class RTPIE(InfoExtractor):
'params': {
'skip_download': True, # RTMP download
},
'params': {
'skip_download': True, # RTMP download
},
- }
+ }, {
+ 'url': 'http://www.rtp.pt/play/p831/a-quimica-das-coisas',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)
def _real_extract(self, url):
video_id = self._match_id(url)