]> git.bitcoin.ninja Git - youtube-dl/commitdiff
Release 2011.11.21
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Nov 2011 20:51:24 +0000 (21:51 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 21 Nov 2011 20:51:24 +0000 (21:51 +0100)
LATEST_VERSION
youtube-dl
youtube_dl/__init__.py

index a68f991608e9aa3aa380f503d6f4fdd0848735df..b30ab005f1ed1142b6472db08a88244d2f782c3f 100644 (file)
@@ -1 +1 @@
-2011.10.19
+2011.11.21
index d4eadc9059d36a2f396bc207cfb13826eb4f15b4..9ed1621865ae33fc85518c70044ceba4e23d9d3b 100755 (executable)
@@ -17,7 +17,7 @@ __author__  = (
        )
 
 __license__ = 'Public Domain'
-__version__ = '2011.10.19'
+__version__ = '2011.11.21'
 
 UPDATE_URL = 'https://raw.github.com/rg3/youtube-dl/master/youtube-dl'
 
@@ -278,7 +278,8 @@ def timeconvert(timestr):
        return timestamp
 
 def _simplify_title(title):
-       return re.sub(ur'[^\w\d_\-]+', u'_', title).strip(u'_')
+       expr = re.compile(ur'[^\w\d_\-]+', flags=re.UNICODE)
+       return expr.sub(u'_', title).strip(u'_')
 
 class DownloadError(Exception):
        """Download Error exception.
@@ -2937,6 +2938,7 @@ class BlipTVIE(InfoExtractor):
                        if urlh.headers.get('Content-Type', '').startswith('video/'): # Direct download
                                basename = url.split('/')[-1]
                                title,ext = os.path.splitext(basename)
+                               title = title.decode('UTF-8')
                                ext = ext.replace('.', '')
                                self.report_direct_download(title)
                                info = {
@@ -3089,9 +3091,9 @@ class ComedyCentralIE(InfoExtractor):
 
                if mobj.group('shortname'):
                        if mobj.group('shortname') in ('tds', 'thedailyshow'):
-                               url = 'http://www.thedailyshow.com/full-episodes/'
+                               url = u'http://www.thedailyshow.com/full-episodes/'
                        else:
-                               url = 'http://www.colbertnation.com/full-episodes/'
+                               url = u'http://www.colbertnation.com/full-episodes/'
                        mobj = re.match(self._VALID_URL, url)
                        assert mobj is not None
 
@@ -3177,7 +3179,7 @@ class ComedyCentralIE(InfoExtractor):
 
                        self._downloader.increment_downloads()
 
-                       effTitle = showId + '-' + epTitle
+                       effTitle = showId + u'-' + epTitle
                        info = {
                                'id': shortMediaId,
                                'url': video_url,
index 36520c5940b2c5d7f7575f387639d5f7e4c8f2bc..9ed1621865ae33fc85518c70044ceba4e23d9d3b 100755 (executable)
@@ -17,7 +17,7 @@ __author__  = (
        )
 
 __license__ = 'Public Domain'
-__version__ = '2011.10.19'
+__version__ = '2011.11.21'
 
 UPDATE_URL = 'https://raw.github.com/rg3/youtube-dl/master/youtube-dl'