Browse Source

[pyvideo] Fix title extraction

totalwebcasting
Sergey M․ 10 years ago
parent
commit
76233cda34
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/pyvideo.py

+ 1
- 1
youtube_dl/extractor/pyvideo.py View File

@ -46,7 +46,7 @@ class PyvideoIE(InfoExtractor):
return self.url_result(m_youtube.group(1), 'Youtube')
title = self._html_search_regex(
r'<div class="section">.*?<h3(?:\s+class="[^"]*")?>([^>]+?)</h3>',
r'<div class="section">\s*<h3(?:\s+class="[^"]*"[^>]*)?>([^>]+?)</h3>',
webpage, 'title', flags=re.DOTALL)
video_url = self._search_regex(
[r'<source src="(.*?)"', r'<dt>Download</dt>.*?<a href="(.+?)"'],


Loading…
Cancel
Save