From: Sergey M․ Date: Thu, 8 Jun 2017 17:27:11 +0000 (+0700) Subject: [golem] Ensure format id is string X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=e4d2e76d8ed6d125f671987b855c6d3eef1b38f3;p=youtube-dl [golem] Ensure format id is string --- 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'),