aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/azmedien.py
diff options
context:
space:
mode:
authorAlex Seiler <[email protected]>2017-01-22 20:30:29 +0100
committerSergey M <[email protected]>2017-01-23 02:30:29 +0700
commita089545e036619a798aa19f33085f2b0b87a1b0a (patch)
treeb1fa3a05d960e401ea51e3b14cda0aab0813cfb7 /youtube_dl/extractor/azmedien.py
parent30dda24de304dd53fc63dfb5bf4672c2ec747014 (diff)
downloadyoutube-dl-a089545e036619a798aa19f33085f2b0b87a1b0a.tar.gz
youtube-dl-a089545e036619a798aa19f33085f2b0b87a1b0a.zip
[azmedien:show] Improve _VALID_URL
Diffstat (limited to 'youtube_dl/extractor/azmedien.py')
-rw-r--r--youtube_dl/extractor/azmedien.py15
1 files changed, 14 insertions, 1 deletions
diff --git a/youtube_dl/extractor/azmedien.py b/youtube_dl/extractor/azmedien.py
index 059dc6e4b..a89f71c20 100644
--- a/youtube_dl/extractor/azmedien.py
+++ b/youtube_dl/extractor/azmedien.py
@@ -85,7 +85,20 @@ class AZMedienIE(AZMedienBaseIE):
class AZMedienShowIE(AZMedienBaseIE):
IE_DESC = 'AZ Medien shows'
- _VALID_URL = r'https?://(?:www\.)?(?:telezueri\.ch|telebaern\.tv|telem1\.ch)/(?P<id>[0-9]+-show-[^/#]+(?:/[0-9]+-episode-[^/#]+)?)$'
+ _VALID_URL = r'''(?x)
+ https?://
+ (?:www\.)?
+ (?:
+ telezueri\.ch|
+ telebaern\.tv|
+ telem1\.ch
+ )/
+ (?P<id>[0-9]+-show-[^/\#]+
+ (?:
+ /[0-9]+-episode-[^/\#]+
+ )?
+ )$
+ '''
_TESTS = [{
# URL with 'episode'