1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 14:15:13 +00:00

[extractor] Standardize _live_title

This commit is contained in:
pukkandan
2021-12-15 21:30:46 +05:30
parent 46383212b3
commit 39ca3b5c7f
67 changed files with 68 additions and 94 deletions

View File

@@ -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)