projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5521ea
)
[turbo] Ensure format id is string
author
Sergey M․
<dstftw@gmail.com>
Thu, 8 Jun 2017 17:31:47 +0000
(
00:31
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 8 Jun 2017 17:31:56 +0000
(
00:31
+0700)
youtube_dl/extractor/turbo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/turbo.py
b/youtube_dl/extractor/turbo.py
index 25aa9c58e522ec0cdecceeeb296f129c8da92a2d..be3eaa5c29c740f8fd39d6e76e69d1b006201602 100644
(file)
--- 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,