diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-06-09 00:27:11 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-06-09 00:27:11 +0700 |
commit | e4d2e76d8ed6d125f671987b855c6d3eef1b38f3 (patch) | |
tree | 40329f0ac348db8f2dc5e61659a2f65561287296 /youtube_dl | |
parent | 87f5646937f52643a32f80210adf2647e3bd5d25 (diff) |
[golem] Ensure format id is string
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/golem.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/golem.py b/youtube_dl/extractor/golem.py index 2bfb99040..47a068e74 100644 --- a/youtube_dl/extractor/golem.py +++ b/youtube_dl/extractor/golem.py @@ -3,6 +3,7 @@ from __future__ import unicode_literals from .common import InfoExtractor from ..compat import ( + compat_str, compat_urlparse, ) from ..utils import ( @@ -46,7 +47,7 @@ class GolemIE(InfoExtractor): 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'), |