-# coding: utf-8
-from __future__ import unicode_literals
-
from .common import InfoExtractor
from ..utils import unified_timestamp
'upload_date': '20150219',
'thumbnail': r're:^https?://.*\.jpg$',
},
- 'params': {
- 'format': 'bestvideo',
- },
}, {
'url': 'https://www.internazionale.it/video/2018/08/29/telefono-stare-con-noi-stessi',
'md5': '9db8663704cab73eb972d1cee0082c79',
'upload_date': '20180829',
'thumbnail': r're:^https?://.*\.jpg$',
},
- 'params': {
- 'format': 'bestvideo',
- },
}]
def _real_extract(self, url):
'video available aboard', default='1', group='value')
video_available_abroad = video_available_abroad == '1'
- video_base = 'https://video%s.internazionale.it/%s/%s.' % \
- ('' if video_available_abroad else '-ita', video_path, video_id)
+ video_base = 'https://video{}.internazionale.it/{}/{}.'.format(
+ '' if video_available_abroad else '-ita', video_path, video_id)
formats = self._extract_m3u8_formats(
video_base + 'm3u8', display_id, 'mp4',
entry_protocol='m3u8_native', m3u8_id='hls', fatal=False)
formats.extend(self._extract_mpd_formats(
video_base + 'mpd', display_id, mpd_id='dash', fatal=False))
- self._sort_formats(formats)
timestamp = unified_timestamp(self._html_search_meta(
'article:published_time', webpage, 'timestamp'))