]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[azmedien:show] Improve _VALID_URL
authorAlex Seiler <seileralex@gmail.com>
Sun, 22 Jan 2017 19:30:29 +0000 (20:30 +0100)
committerSergey M <dstftw@gmail.com>
Sun, 22 Jan 2017 19:30:29 +0000 (02:30 +0700)
youtube_dl/extractor/azmedien.py

index 059dc6e4bbc9303a23585cff503004257b5e07f1..a89f71c20c08ac95cd5e78814afe5da783ed2ca3 100644 (file)
@@ -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'