from __future__ import unicode_literals
from .common import InfoExtractor
-from ..utils import (
+from ..compat import (
+ compat_str,
compat_urlparse,
+)
+from ..utils import (
determine_ext,
)
continue
formats.append({
- 'format_id': e.tag,
+ 'format_id': compat_str(e.tag),
'url': compat_urlparse.urljoin(self._PREFIX, url),
'height': self._int(e.get('height'), 'height'),
'width': self._int(e.get('width'), 'width'),