aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/appletrailers.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-26 12:41:24 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-26 12:41:24 +0100
commite91cdcae1a8e33cd63e68e81c14abb163b9b4c64 (patch)
tree5a86cd67f00bec4efdc382d21bbe2cd1b80f84df /youtube_dl/extractor/appletrailers.py
parent27e1400f5541ff46ee11b63219baff8e1b255a92 (diff)
[appletrailers] Modernize
Diffstat (limited to 'youtube_dl/extractor/appletrailers.py')
-rw-r--r--youtube_dl/extractor/appletrailers.py2
1 files changed, 1 insertions, 1 deletions
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('\'', '&#39;')
s = re.sub(self._JSON_RE, _clean_json, s)
- s = '<html>' + s + u'</html>'
+ s = '<html>%s</html>' % s
return s
doc = self._download_xml(playlist_url, movie, transform_source=fix_html)