Browse Source

[azmedien:show] Improve _VALID_URL

master-ytdl-org
Alex Seiler 8 years ago
committed by Sergey M
parent
commit
a089545e03
1 changed files with 14 additions and 1 deletions
  1. +14
    -1
      youtube_dl/extractor/azmedien.py

+ 14
- 1
youtube_dl/extractor/azmedien.py View 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'


Loading…
Cancel
Save