projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30dda24
)
[azmedien:show] Improve _VALID_URL
author
Alex Seiler
<seileralex@gmail.com>
Sun, 22 Jan 2017 19:30:29 +0000
(20:30 +0100)
committer
Sergey M
<dstftw@gmail.com>
Sun, 22 Jan 2017 19:30:29 +0000
(
02:30
+0700)
youtube_dl/extractor/azmedien.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/azmedien.py
b/youtube_dl/extractor/azmedien.py
index 059dc6e4bbc9303a23585cff503004257b5e07f1..a89f71c20c08ac95cd5e78814afe5da783ed2ca3 100644
(file)
--- 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'