-# coding: utf-8
-from __future__ import unicode_literals
-
import re
from .common import InfoExtractor
from ..utils import (
- xpath_text,
int_or_none,
+ xpath_text,
)
'params': {
# rtmp download
'skip_download': True,
- }
+ },
}
_SUBTITLE_LANGS = {
display_id = mobj.group('display_id')
video = self._download_xml(
- 'http://video2.walla.co.il/?w=null/null/%s/@@/video/flv_pl' % video_id,
+ f'http://video2.walla.co.il/?w=null/null/{video_id}/@@/video/flv_pl',
display_id)
item = video.find('./items/item')
if m:
fmt['height'] = int(m.group('height'))
formats.append(fmt)
- self._sort_formats(formats)
return {
'id': video_id,