From 72e45e3536011358bae97ac1006f773d630e3290 Mon Sep 17 00:00:00 2001 From: Collin Chaffin Date: Fri, 20 Nov 2015 19:45:40 -0600 Subject: [PATCH] Update pluralsight.py Regex it completely broken. Pluralsight now changed both the order of their URL params, but also from WWW to APP subdomain. Rewrote the regex making the sections optional to account for changing order but I am admittedly not the regex guru that some are, so by all means if anyone wants to optimize my regex feel free! :) --- youtube_dl/extractor/pluralsight.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/pluralsight.py b/youtube_dl/extractor/pluralsight.py index fd32836cc..60f7ddc23 100644 --- a/youtube_dl/extractor/pluralsight.py +++ b/youtube_dl/extractor/pluralsight.py @@ -19,7 +19,7 @@ from ..utils import ( class PluralsightIE(InfoExtractor): IE_NAME = 'pluralsight' - _VALID_URL = r'https?://(?:www\.)?pluralsight\.com/training/player\?author=(?P[^&]+)&name=(?P[^&]+)(?:&mode=live)?&clip=(?P\d+)&course=(?P[^&]+)' + _VALID_URL = r'https?://?(?:www\.)?(?:app\.)?pluralsight\.com/training/player\?(?:(author=(?P[^&]+))(&name=(?P[^&]+))(&clip=(?P\d+))(&mode=live)(&course=(?P[^&]+)))' _LOGIN_URL = 'https://www.pluralsight.com/id/' _NETRC_MACHINE = 'pluralsight'