|
|
@ -4,6 +4,7 @@ from __future__ import unicode_literals
|
|
|
|
import re
|
|
|
|
import re
|
|
|
|
|
|
|
|
|
|
|
|
from .common import InfoExtractor
|
|
|
|
from .common import InfoExtractor
|
|
|
|
|
|
|
|
from ..compat import compat_str
|
|
|
|
from ..utils import (
|
|
|
|
from ..utils import (
|
|
|
|
ExtractorError,
|
|
|
|
ExtractorError,
|
|
|
|
int_or_none,
|
|
|
|
int_or_none,
|
|
|
@ -49,7 +50,7 @@ class TurboIE(InfoExtractor):
|
|
|
|
for child in item:
|
|
|
|
for child in item:
|
|
|
|
m = re.search(r'url_video_(?P<quality>.+)', child.tag)
|
|
|
|
m = re.search(r'url_video_(?P<quality>.+)', child.tag)
|
|
|
|
if m:
|
|
|
|
if m:
|
|
|
|
quality = m.group('quality')
|
|
|
|
quality = compat_str(m.group('quality'))
|
|
|
|
formats.append({
|
|
|
|
formats.append({
|
|
|
|
'format_id': quality,
|
|
|
|
'format_id': quality,
|
|
|
|
'url': child.text,
|
|
|
|
'url': child.text,
|
|
|
|