-# coding: utf-8
-from __future__ import unicode_literals
-
import re
from hashlib import sha1
})[0]
if not self.get_param('allow_unplayable_formats') and video.get('is_protected') is True:
- raise ExtractorError('This video is DRM protected.', expected=True)
+ self.report_drm(clip_id)
formats = []
if self._ACCESS_ID:
'tbr': tbr,
'format_id': 'http%s' % ('-%d' % tbr if tbr else ''),
})
- self._sort_formats(formats)
return {
'duration': float_or_none(video.get('duration')),