mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-10-04 16:37:09 +02:00
Addl. regex refactoring
This commit is contained in:
parent
620d721779
commit
311dc3d438
@ -48,7 +48,7 @@ def _format_html_list(self, html):
|
|||||||
|
|
||||||
|
|
||||||
class ThirtyDaySingerIE(ThirtyDaySingerBase):
|
class ThirtyDaySingerIE(ThirtyDaySingerBase):
|
||||||
_VALID_URL = r'(https?://)?www.30daysinger.com/tutorial/[\w-]+/[\w-]+'
|
_VALID_URL = r'https?://www\.30daysinger\.com/tutorial/[\w-]+/[\w-]+'
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.30daysinger.com/tutorial/30-day-beginner-course-with-jonathan-estabrooks/1',
|
'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):
|
class ThirtyDaySingerPlaylistIE(ThirtyDaySingerBase):
|
||||||
_URI_BASE = 'https://www.30daysinger.com'
|
_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 = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.30daysinger.com/tutorial/30-day-beginner-course-with-jonathan-estabrooks',
|
'url': 'https://www.30daysinger.com/tutorial/30-day-beginner-course-with-jonathan-estabrooks',
|
||||||
|
Loading…
Reference in New Issue
Block a user