Browse Source

[pluralsight:course] Improve _VALID_URL

totalwebcasting
Sergey M․ 9 years ago
parent
commit
a5cd0eb8a4
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      youtube_dl/extractor/pluralsight.py

+ 4
- 1
youtube_dl/extractor/pluralsight.py View File

@ -175,7 +175,7 @@ class PluralsightIE(InfoExtractor):
class PluralsightCourseIE(InfoExtractor): class PluralsightCourseIE(InfoExtractor):
IE_NAME = 'pluralsight:course' IE_NAME = 'pluralsight:course'
_VALID_URL = r'https?://(?:www\.)?pluralsight\.com/courses/(?P<id>[^/]+)'
_VALID_URL = r'https?://(?:(?:www|app)\.)?pluralsight\.com/(?:library/)?courses/(?P<id>[^/]+)'
_TESTS = [{ _TESTS = [{
# Free course from Pluralsight Starter Subscription for Microsoft TechNet # Free course from Pluralsight Starter Subscription for Microsoft TechNet
# https://offers.pluralsight.com/technet?loc=zTS3z&prod=zOTprodz&tech=zOttechz&prog=zOTprogz&type=zSOz&media=zOTmediaz&country=zUSz # https://offers.pluralsight.com/technet?loc=zTS3z&prod=zOTprodz&tech=zOttechz&prog=zOTprogz&type=zSOz&media=zOTmediaz&country=zUSz
@ -190,6 +190,9 @@ class PluralsightCourseIE(InfoExtractor):
# available without pluralsight account # available without pluralsight account
'url': 'https://www.pluralsight.com/courses/angularjs-get-started', 'url': 'https://www.pluralsight.com/courses/angularjs-get-started',
'only_matching': True, 'only_matching': True,
}, {
'url': 'https://app.pluralsight.com/library/courses/understanding-microsoft-azure-amazon-aws/table-of-contents',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):


Loading…
Cancel
Save