Browse Source

[appletrailers] Modernize

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
e91cdcae1a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/appletrailers.py

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

@ -80,7 +80,7 @@ class AppleTrailersIE(InfoExtractor):
def _clean_json(m): def _clean_json(m):
return 'iTunes.playURL(%s);' % m.group(1).replace('\'', ''') return 'iTunes.playURL(%s);' % m.group(1).replace('\'', ''')
s = re.sub(self._JSON_RE, _clean_json, s) s = re.sub(self._JSON_RE, _clean_json, s)
s = '<html>' + s + u'</html>'
s = '<html>%s</html>' % s
return s return s
doc = self._download_xml(playlist_url, movie, transform_source=fix_html) doc = self._download_xml(playlist_url, movie, transform_source=fix_html)


Loading…
Cancel
Save