From: Sergey M․ Date: Thu, 8 Jun 2017 17:20:07 +0000 (+0700) Subject: [flickr] Ensure format id is string X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=15aeeb11882c9597614ce6e249968bfdf7830e8a;p=youtube-dl [flickr] Ensure format id is string --- diff --git a/youtube_dl/extractor/flickr.py b/youtube_dl/extractor/flickr.py index a8e1bf42a..9f166efd4 100644 --- a/youtube_dl/extractor/flickr.py +++ b/youtube_dl/extractor/flickr.py @@ -1,7 +1,10 @@ from __future__ import unicode_literals from .common import InfoExtractor -from ..compat import compat_urllib_parse_urlencode +from ..compat import ( + compat_str, + compat_urllib_parse_urlencode, +) from ..utils import ( ExtractorError, int_or_none, @@ -81,7 +84,7 @@ class FlickrIE(InfoExtractor): formats = [] for stream in streams['stream']: - stream_type = str(stream.get('type')) + stream_type = compat_str(stream.get('type')) formats.append({ 'format_id': stream_type, 'url': stream['_content'],