From: Philipp Hagemeister Date: Wed, 26 Nov 2014 11:41:24 +0000 (+0100) Subject: [appletrailers] Modernize X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e91cdcae1a8e33cd63e68e81c14abb163b9b4c64;p=youtube-dl [appletrailers] Modernize --- diff --git a/youtube_dl/extractor/appletrailers.py b/youtube_dl/extractor/appletrailers.py index 87580147d..0c01fa1a1 100644 --- a/youtube_dl/extractor/appletrailers.py +++ b/youtube_dl/extractor/appletrailers.py @@ -80,7 +80,7 @@ class AppleTrailersIE(InfoExtractor): def _clean_json(m): return 'iTunes.playURL(%s);' % m.group(1).replace('\'', ''') s = re.sub(self._JSON_RE, _clean_json, s) - s = '' + s + u'' + s = '%s' % s return s doc = self._download_xml(playlist_url, movie, transform_source=fix_html)