Browse Source

[viidea] fix _VALID_URL regex and tests

totalwebcasting
remitamine 9 years ago
committed by Sergey M․
parent
commit
8e3a2bd620
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      youtube_dl/extractor/viidea.py

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

@ -31,7 +31,7 @@ class ViideaIE(InfoExtractor):
bvvideo\.si| bvvideo\.si|
kongres\.viidea\.net| kongres\.viidea\.net|
edemokracija\.viidea\.com edemokracija\.viidea\.com
)(?:/lecture)?/(?P<id>[^/]+)(?:/video/(?P<part>\d+))?'''
)(?:/lecture)?/(?P<id>[^/]+)(?:/video/(?P<part>\d+))?/*(?:[#?].*)?$'''
_TESTS = [{ _TESTS = [{
'url': 'http://videolectures.net/promogram_igor_mekjavic_eng/', 'url': 'http://videolectures.net/promogram_igor_mekjavic_eng/',
@ -130,7 +130,7 @@ class ViideaIE(InfoExtractor):
return info return info
else: else:
for part in parts: 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' lecture_info['_type'] = 'multi_video'
else: else:
# Probably a playlist # Probably a playlist


Loading…
Cancel
Save