# coding: utf-8
from __future__ import unicode_literals
-import datetime
import json
from .common import InfoExtractor
'ext': 'mp4',
'title': 're:^münchen.tv-Livestream [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
'is_live': True,
+ 'thumbnail': 're:^https?://.*\.jpg$'
},
'params': {
'skip_download': True,
display_id = 'live'
webpage = self._download_webpage(url, display_id)
- now = datetime.datetime.now()
- now_str = now.strftime("%Y-%m-%d %H:%M")
- title = self._og_search_title(webpage) + ' ' + now_str
+ title = self._live_title(self._og_search_title(webpage))
data_js = self._search_regex(
r'(?s)\nplaylist:\s*(\[.*?}\]),related:',
'title': title,
'formats': formats,
'is_live': True,
+ 'thumbnail': thumbnail,
}
-