mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-06 21:45:47 +01:00
[extractor] Standardize _live_title
This commit is contained in:
parent
46383212b3
commit
39ca3b5c7f
67 changed files with 68 additions and 94 deletions
|
|
@ -3456,10 +3456,8 @@ class InfoExtractor(object):
|
|||
return formats
|
||||
|
||||
def _live_title(self, name):
|
||||
""" Generate the title for a live video """
|
||||
now = datetime.datetime.now()
|
||||
now_str = now.strftime('%Y-%m-%d %H:%M')
|
||||
return name + ' ' + now_str
|
||||
self._downloader.deprecation_warning('yt_dlp.InfoExtractor._live_title is deprecated and does not work as expected')
|
||||
return name
|
||||
|
||||
def _int(self, v, name, fatal=False, **kwargs):
|
||||
res = int_or_none(v, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue