-from __future__ import unicode_literals
-
import re
from .common import InfoExtractor
})
if not formats:
- if not self._downloader.params.get('allow_unplayable_formats') and drm:
- self.raise_no_formats('This video is DRM protected.', expected=True)
- return
-
- self._sort_formats(formats)
+ if not self.get_param('allow_unplayable_formats') and drm:
+ self.report_drm(video_id)
info = {
'id': video_id,
'quality': stream.get('kwaliteit'),
})
- self._sort_formats(formats)
-
subtitles = {}
if metadata.get('tt888') == 'ja':
subtitles['nl'] = [{
return {
'id': video_id,
- 'title': self._live_title(title) if is_live else title,
+ 'title': title,
'description': metadata.get('info'),
'thumbnail': metadata.get('images', [{'url': None}])[-1]['url'],
'upload_date': unified_strdate(metadata.get('gidsdatum')),
return {
'id': video_id,
'url': stream['url'],
- 'title': self._live_title(title),
+ 'title': title,
'acodec': codec,
'ext': codec,
'is_live': True,
}
-class NPODataMidEmbedIE(InfoExtractor):
+class NPODataMidEmbedIE(InfoExtractor): # XXX: Conventionally, base classes should end with BaseIE/InfoExtractor
def _real_extract(self, url):
display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id)
}
-class NPOPlaylistBaseIE(NPOIE):
+class NPOPlaylistBaseIE(NPOIE): # XXX: Do not subclass from concrete IE
def _real_extract(self, url):
playlist_id = self._match_id(url)