[toggo] Improve `_VALID_URL` (#3689)

Authored by: ca-za
pull/3701/head
ca-za 2 years ago committed by GitHub
parent 385ffb467b
commit d239db0306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,7 @@ from ..utils import int_or_none, parse_qs
class ToggoIE(InfoExtractor):
IE_NAME = 'toggo'
_VALID_URL = r'https?://(?:www\.)?toggo\.de/[^/?#]+/folge/(?P<id>[^/?#]+)'
_VALID_URL = r'https?://(?:www\.)?toggo\.de/(?:toggolino/)?[^/?#]+/folge/(?P<id>[^/?#]+)'
_TESTS = [{
'url': 'https://www.toggo.de/weihnachtsmann--co-kg/folge/ein-geschenk-fuer-zwei',
'info_dict': {
@ -30,6 +30,9 @@ class ToggoIE(InfoExtractor):
}, {
'url': 'https://www.toggo.de/grizzy--die-lemminge/folge/ab-durch-die-wand-vogelfrei-rock\'n\'lemming',
'only_matching': True,
}, {
'url': 'https://www.toggo.de/toggolino/paw-patrol/folge/der-wetter-zeppelin-der-chili-kochwettbewerb',
'only_matching': True,
}]
def _real_extract(self, url):

Loading…
Cancel
Save