-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
determine_ext,
+ format_field,
int_or_none,
unified_timestamp,
)
'format_id': format_id or 'standard',
'quality': quality,
})
+ self._check_formats(formats, video_id)
self._sort_formats(formats)
username = data.get('username')
- alt_title = 'Vine by %s' % username if username else None
+ alt_title = format_field(username, None, 'Vine by %s')
return {
'id': video_id,
return False if VineIE.suitable(url) else super(VineUserIE, cls).suitable(url)
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
+ mobj = self._match_valid_url(url)
user = mobj.group('user')
u = mobj.group('u')