]> git.bitcoin.ninja Git - youtube-dl/commitdiff
fix some titles in TED
authorJaime Marquínez Ferrándiz <jaimemf93@gmail.com>
Sun, 17 Feb 2013 16:25:02 +0000 (17:25 +0100)
committerJaime Marquínez Ferrándiz <jaimemf93@gmail.com>
Sun, 17 Feb 2013 16:25:02 +0000 (17:25 +0100)
youtube_dl/InfoExtractors.py

index 742b036d3dd6fd246ffc450671262a8deb76458c..086aa5da3eeae202caf7fa743029b6863c969048 100755 (executable)
@@ -3975,7 +3975,7 @@ class TEDIE(InfoExtractor):
         videoName=m.group('videoName')
         webpage=self._download_webpage(url, 0, 'Downloading \"%s\" page' % videoName)
         #If the url includes the language we get the title translated
-        title_RE=r'<h1><span id="altHeadline" >(?P<title>[\s\w:/\.\?=\+-]*)</span></h1>'
+        title_RE=r'<h1><span id="altHeadline" >(?P<title>[\s\w:/\.\?=\+-\\\']*)</span></h1>'
         title=re.search(title_RE, webpage).group('title')
         info_RE=r'''<script\ type="text/javascript">var\ talkDetails\ =(.*?)
                         "id":(?P<videoID>[\d]+).*?