Addl. regex refactoring

This commit is contained in:
Kieran Eglin 2024-05-09 10:57:13 -07:00
parent 620d721779
commit 311dc3d438
No known key found for this signature in database
GPG key ID: 193984967FCF432D

View file

@ -48,7 +48,7 @@ def _format_html_list(self, html):
class ThirtyDaySingerIE(ThirtyDaySingerBase):
_VALID_URL = r'(https?://)?www.30daysinger.com/tutorial/[\w-]+/[\w-]+'
_VALID_URL = r'https?://www\.30daysinger\.com/tutorial/[\w-]+/[\w-]+'
_TESTS = [{
'url': 'https://www.30daysinger.com/tutorial/30-day-beginner-course-with-jonathan-estabrooks/1',
@ -71,7 +71,7 @@ def _real_extract(self, url):
class ThirtyDaySingerPlaylistIE(ThirtyDaySingerBase):
_URI_BASE = 'https://www.30daysinger.com'
_VALID_URL = r'(https?://)?www.30daysinger.com/tutorial/(?P<playlist_id>[\w-]+)/?(?:$|[#?])'
_VALID_URL = r'https?://www\.30daysinger\.com/tutorial/(?P<playlist_id>[\w-]+)/?(?:$|[#?])'
_TESTS = [{
'url': 'https://www.30daysinger.com/tutorial/30-day-beginner-course-with-jonathan-estabrooks',