mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-18 13:20:46 +02:00
[azmedien:show] Improve _VALID_URL
This commit is contained in:
parent
30dda24de3
commit
a089545e03
@ -85,7 +85,20 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
class AZMedienShowIE(AZMedienBaseIE):
|
class AZMedienShowIE(AZMedienBaseIE):
|
||||||
IE_DESC = 'AZ Medien shows'
|
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 = [{
|
_TESTS = [{
|
||||||
# URL with 'episode'
|
# URL with 'episode'
|
||||||
|
Loading…
Reference in New Issue
Block a user