-# coding: utf-8
-from __future__ import unicode_literals
-
import json
import re
formats = self._extract_akamai_formats(
'%s?hdnea=%s' % (token_attrib['url'], token_attrib['auth']),
video_id)
- self._sort_formats(formats)
return formats
def _real_extract(self, url):
return {
'id': video_id,
- 'title': self._live_title(title) if is_live else title,
+ 'title': title,
'upload_date': unified_strdate(_v('time_date')),
'uploader': _v('meta_organisation'),
'categories': categories,
}
-class Laola1TvBaseIE(Laola1TvEmbedIE):
+class Laola1TvBaseIE(Laola1TvEmbedIE): # XXX: Do not subclass from concrete IE
def _extract_video(self, url):
display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id)
return {
'id': video_id,
'display_id': display_id,
- 'title': self._live_title(title) if is_live else title,
+ 'title': title,
'description': video_data.get('description'),
'thumbnail': video_data.get('image'),
'categories': categories,