|
|
@ -3,10 +3,8 @@ from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
from .common import InfoExtractor
|
|
|
|
from .common import InfoExtractor
|
|
|
|
from ..utils import (
|
|
|
|
from ..utils import js_to_json
|
|
|
|
url_infer_protocol,
|
|
|
|
from ..compat import compat_urlparse
|
|
|
|
js_to_json
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UDNEmbedIE(InfoExtractor):
|
|
|
|
class UDNEmbedIE(InfoExtractor):
|
|
|
@ -45,7 +43,7 @@ class UDNEmbedIE(InfoExtractor):
|
|
|
|
|
|
|
|
|
|
|
|
formats = [{
|
|
|
|
formats = [{
|
|
|
|
'url': self._download_webpage(
|
|
|
|
'url': self._download_webpage(
|
|
|
|
url_infer_protocol(url, api_url), video_id,
|
|
|
|
compat_urlparse.urljoin(url, api_url), video_id,
|
|
|
|
'retrieve url for %s video' % video_type),
|
|
|
|
'retrieve url for %s video' % video_type),
|
|
|
|
'format_id': video_type,
|
|
|
|
'format_id': video_type,
|
|
|
|
'preference': 0 if video_type == 'mp4' else -1,
|
|
|
|
'preference': 0 if video_type == 'mp4' else -1,
|
|
|
|