From: Sergey M․ Date: Thu, 8 Jun 2017 17:40:03 +0000 (+0700) Subject: [extractor/common] Return unicode string from _match_id X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1afd0b0da70b6ed709c610aff98786d71511a629;p=youtube-dl [extractor/common] Return unicode string from _match_id --- diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index fec39da8b..f027447c8 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -376,7 +376,7 @@ class InfoExtractor(object): cls._VALID_URL_RE = re.compile(cls._VALID_URL) m = cls._VALID_URL_RE.match(url) assert m - return m.group('id') + return compat_str(m.group('id')) @classmethod def working(cls):