Skip to content

Commit

Permalink
[rts] Improve _VALID_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Dec 2, 2014
1 parent b1399a1 commit 752c8c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion youtube_dl/extractor/rts.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

class RTSIE(InfoExtractor):
IE_DESC = 'RTS.ch'
_VALID_URL = r'^https?://(?:www\.)?rts\.ch/(?:(?:[^/]+/){2,}(?P<id>[0-9]+)-(?P<display_id>.+?)\.html|play/tv/-/video/(?P<display_id_new>.+?)\?id=(?P<id_new>[0-9]+))'
_VALID_URL = r'^https?://(?:www\.)?rts\.ch/(?:(?:[^/]+/){2,}(?P<id>[0-9]+)-(?P<display_id>.+?)\.html|play/tv/[^/]+/video/(?P<display_id_new>.+?)\?id=(?P<id_new>[0-9]+))'

_TESTS = [
{
Expand Down Expand Up @@ -117,6 +117,10 @@ class RTSIE(InfoExtractor):
'thumbnail': 're:^https?://.*\.image',
'view_count': int,
},
},
{
'url': 'http://www.rts.ch/play/tv/le-19h30/video/le-chantier-du-nouveau-parlement-vaudois-a-permis-une-trouvaille-historique?id=6348280',
'only_matching': True,
}
]

Expand Down

0 comments on commit 752c8c9

Please sign in to comment.