Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Glen
youtube-dl
Commits
c9b0564a
Commit
c9b0564a
authored
Jul 09, 2019
by
Remita Amine
Browse files
[packtpub] Relax lesson _VALID_URL regex(closes #21695)
parent
25d71fb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
youtube_dl/extractor/packtpub.py
youtube_dl/extractor/packtpub.py
+4
-1
No files found.
youtube_dl/extractor/packtpub.py
View file @
c9b0564a
...
...
@@ -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>
\d
+)/(?P<id>
\d
+)(?:/(?P<display_id>[^/?&#]+))?'
_VALID_URL
=
r
'https?://(?:(?:www\.)?packtpub\.com/mapt|subscription\.packtpub\.com)/video/[^/]+/(?P<course_id>\d+)/(?P<chapter_id>
[^/]
+)/(?P<id>
[^/]
+)(?:/(?P<display_id>[^/?&#]+))?'
_TESTS
=
[{
'url'
:
'https://www.packtpub.com/mapt/video/web-development/9781787122215/20528/20530/Project+Intro'
,
...
...
@@ -41,6 +41,9 @@ 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment