fix _VALID_URL regex

some videos don't have a '-' in front of the video id
This commit is contained in:
w1ldg00se 2020-12-05 23:48:19 +01:00 committed by GitHub
parent 79643316da
commit 77bf61e04f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@ from ..compat import compat_urlparse
class UKDevilzIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?ukdevilz\.com/watch/-(?P<id>[\d]*_[\d]*)'
_VALID_URL = r'https?://(?:www\.)?ukdevilz\.com/watch/(-)?(?P<id>[\d]*_[\d]*)'
IE_DESC = 'UKDEVILZ'
_TEST = {
'url': 'https://ukdevilz.com/watch/-160418850_456239050',