Skip to content

Commit

Permalink
Revert "[packtpub] Relax lesson _VALID_URL regex(closes #21695)"
Browse files Browse the repository at this point in the history
This reverts commit 09e9f89.
  • Loading branch information
Lamieur committed Apr 20, 2020
1 parent f2360e9 commit e7ee14b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions youtube_dl/extractor/packtpub.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PacktPubBaseIE(InfoExtractor):


class PacktPubIE(PacktPubBaseIE):
_VALID_URL = r'https?://(?:(?:www\.)?packtpub\.com/mapt|subscription\.packtpub\.com)/video/[^/]+/(?P<course_id>\d+)/(?P<chapter_id>[^/]+)/(?P<id>[^/]+)(?:/(?P<display_id>[^/?&#]+))?'
_VALID_URL = r'https?://(?:(?:www\.)?packtpub\.com/mapt|subscription\.packtpub\.com)/video/[^/]+/(?P<course_id>\d+)/(?P<chapter_id>\d+)/(?P<id>\d+)(?:/(?P<display_id>[^/?&#]+))?'

_TESTS = [{
'url': 'https://www.packtpub.com/mapt/video/web-development/9781787122215/20528/20530/Project+Intro',
Expand All @@ -41,9 +41,6 @@ class PacktPubIE(PacktPubBaseIE):
}, {
'url': 'https://subscription.packtpub.com/video/web_development/9781787122215/20528/20530/project-intro',
'only_matching': True,
}, {
'url': 'https://subscription.packtpub.com/video/programming/9781838988906/p1/video1_1/business-card-project',
'only_matching': True,
}]
_NETRC_MACHINE = 'packtpub'
_TOKEN = None
Expand Down

0 comments on commit e7ee14b

Please sign in to comment.