]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[extractor/common] Return unicode string from _match_id
authorSergey M․ <dstftw@gmail.com>
Thu, 8 Jun 2017 17:40:03 +0000 (00:40 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 8 Jun 2017 17:40:03 +0000 (00:40 +0700)
youtube_dl/extractor/common.py

index fec39da8b6ec498b7a50674f692180570f8c0dac..f027447c81922c4ab0f0974f6703be739de515ea 100644 (file)
@@ -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):