from .common import InfoExtractor
from ..utils import (
- int_or_none,
- unified_strdate,
determine_ext,
+ int_or_none,
join_nonempty,
+ unified_strdate,
update_url_query,
)
'params': {
# m3u8 download
'skip_download': True,
- }
+ },
}, {
# Grill.burger
'url': 'http://www.starwars.com/video/rogue-one-a-star-wars-story-intro-featurette',
'params': {
# m3u8 download
'skip_download': True,
- }
+ },
}, {
'url': 'http://videos.disneylatino.com/ver/spider-man-de-regreso-a-casa-primer-adelanto-543a33a1850bdcfcca13bae2',
'only_matching': True,
video_data = page_data['data'][0]
else:
webpage = self._download_webpage(
- 'http://%s/embed/%s' % (domain, video_id), video_id)
+ f'http://{domain}/embed/{video_id}', video_id)
page_data = self._parse_json(self._search_regex(
r'Disney\.EmbedVideo\s*=\s*({.+});',
webpage, 'embed data'), video_id)
})
if not formats and video_data.get('expired'):
self.raise_no_formats(
- '%s said: %s' % (self.IE_NAME, page_data['translations']['video_expired']),
+ '{} said: {}'.format(self.IE_NAME, page_data['translations']['video_expired']),
expected=True)
- self._sort_formats(formats)
subtitles = {}
for caption in video_data.get('captions', []):