aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/turbo.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-06-09 00:31:47 +0700
committerSergey M․ <dstftw@gmail.com>2017-06-09 00:31:56 +0700
commit751583042299138ef4deef5862e6fe2ada078417 (patch)
treea57b77b0797edbd55ef0cfd9a95b6022cad93b8d /youtube_dl/extractor/turbo.py
parentf5521ea209d1b20ec0bc6eeeb16e99101d05c854 (diff)
[turbo] Ensure format id is string
Diffstat (limited to 'youtube_dl/extractor/turbo.py')
-rw-r--r--youtube_dl/extractor/turbo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/turbo.py b/youtube_dl/extractor/turbo.py
index 25aa9c58e..be3eaa5c2 100644
--- a/youtube_dl/extractor/turbo.py
+++ b/youtube_dl/extractor/turbo.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
import re
from .common import InfoExtractor
+from ..compat import compat_str
from ..utils import (
ExtractorError,
int_or_none,
@@ -49,7 +50,7 @@ class TurboIE(InfoExtractor):
for child in item:
m = re.search(r'url_video_(?P<quality>.+)', child.tag)
if m:
- quality = m.group('quality')
+ quality = compat_str(m.group('quality'))
formats.append({
'format_id': quality,
'url': child.text,