Browse Source

Merge pull request #5985 from zx8/master

[safari] make url regex more lenient
totalwebcasting
Sergey M. 10 years ago
parent
commit
636a9637f4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/safari.py

+ 2
- 2
youtube_dl/extractor/safari.py View File

@ -83,7 +83,7 @@ class SafariIE(SafariBaseIE):
library/view/[^/]+|
api/v1/book
)/
(?P<course_id>\d+)/
(?P<course_id>[^/]+)/
(?:chapter(?:-content)?/)?
(?P<part>part\d+)\.html
'''
@ -122,7 +122,7 @@ class SafariCourseIE(SafariBaseIE):
IE_NAME = 'safari:course'
IE_DESC = 'safaribooksonline.com online courses'
_VALID_URL = r'https?://(?:www\.)?safaribooksonline\.com/(?:library/view/[^/]+|api/v1/book)/(?P<id>\d+)/?(?:[#?]|$)'
_VALID_URL = r'https?://(?:www\.)?safaribooksonline\.com/(?:library/view/[^/]+|api/v1/book)/(?P<id>[^/]+)/?(?:[#?]|$)'
_TESTS = [{
'url': 'https://www.safaribooksonline.com/library/view/hadoop-fundamentals-livelessons/9780133392838/',


Loading…
Cancel
Save