aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-11-07 17:43:23 +0100
committerSergey M․ <dstftw@gmail.com>2015-11-08 06:55:51 +0600
commit8e3a2bd6200660f9fb9d485b1c924fa5462bd566 (patch)
tree8fd2004a0c1857c4740aadc1b96b6b2e34a74593
parenta06bf87a2c6009d82ec28afe566f653b3deb11bf (diff)
[viidea] fix _VALID_URL regex and tests
-rw-r--r--youtube_dl/extractor/viidea.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/viidea.py b/youtube_dl/extractor/viidea.py
index 71fb298e6..ae9a42737 100644
--- a/youtube_dl/extractor/viidea.py
+++ b/youtube_dl/extractor/viidea.py
@@ -31,7 +31,7 @@ class ViideaIE(InfoExtractor):
bvvideo\.si|
kongres\.viidea\.net|
edemokracija\.viidea\.com
- )(?:/lecture)?/(?P<id>[^/]+)(?:/video/(?P<part>\d+))?'''
+ )(?:/lecture)?/(?P<id>[^/]+)(?:/video/(?P<part>\d+))?/*(?:[#?].*)?$'''
_TESTS = [{
'url': 'http://videolectures.net/promogram_igor_mekjavic_eng/',
@@ -130,7 +130,7 @@ class ViideaIE(InfoExtractor):
return info
else:
for part in parts:
- entries.append(self.url_result('%s/video/%s' % (base_url, lecture_id, part), 'Viidea'))
+ entries.append(self.url_result('%s/%s/video/%s' % (base_url, lecture_slug, part), 'Viidea'))
lecture_info['_type'] = 'multi_video'
else:
# Probably a playlist