A feature-rich command-line audio/video downloader
[extractor] Standardize `_live_title`
pukkandan39ca3b5c7f8b
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.pyindex 39fd2e1fd7..317526d101 100644--- a/yt_dlp/YoutubeDL.py+++ b/yt_dlp/YoutubeDL.py@@ -2673,6 +2673,9 @@ class YoutubeDL(object):if self._num_downloads >= int(max_downloads):raise MaxDownloadsReached()+ if info_dict.get('is_live'):+ info_dict['title'] += ' ' + datetime.datetime.now().strftime('%Y-%m-%d %H:%M')+# TODO: backward compatibility, to be removedinfo_dict['fulltitle'] = info_dict['title']diff --git a/yt_dlp/extractor/abc.py b/yt_dlp/extractor/abc.pyindex 3e202168ed..e3369306c5 100644--- a/yt_dlp/extractor/abc.py+++ b/yt_dlp/extractor/abc.py@@ -233,8 +233,6 @@ class ABCIViewIE(InfoExtractor):}]is_live = video_params.get('livestream') == '1'- if is_live:- title = self._live_title(title)return {'id': video_id,diff --git a/yt_dlp/extractor/adobeconnect.py b/yt_dlp/extractor/adobeconnect.pyindex 728549eb92..e688dddcbb 100644--- a/yt_dlp/extractor/adobeconnect.py+++ b/yt_dlp/extractor/adobeconnect.py@@ -31,7 +31,7 @@ class AdobeConnectIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'formats': formats,'is_live': is_live,}diff --git a/yt_dlp/extractor/arcpublishing.py b/yt_dlp/extractor/arcpublishing.pyindex 5a9b8181a5..1943fd5f83 100644--- a/yt_dlp/extractor/arcpublishing.py+++ b/yt_dlp/extractor/arcpublishing.py@@ -158,7 +158,7 @@ class ArcPublishingIE(InfoExtractor):return {'id': uuid,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'thumbnail': try_get(video, lambda x: x['promo_image']['url']),'description': try_get(video, lambda x: x['subheadlines']['basic']),'formats': formats,diff --git a/yt_dlp/extractor/ard.py b/yt_dlp/extractor/ard.pyindex f8d57109e1..1aff0361c1 100644--- a/yt_dlp/extractor/ard.py+++ b/yt_dlp/extractor/ard.py@@ -280,7 +280,7 @@ class ARDMediathekIE(ARDMediathekBaseIE):info.update({'id': video_id,- 'title': self._live_title(title) if info.get('is_live') else title,+ 'title': title,'description': description,'thumbnail': thumbnail,})diff --git a/yt_dlp/extractor/awaan.py b/yt_dlp/extractor/awaan.pyindex 22cc10d988..b5d1b57af2 100644--- a/yt_dlp/extractor/awaan.py+++ b/yt_dlp/extractor/awaan.py@@ -41,7 +41,7 @@ class AWAANBaseIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'description': video_data.get('description_en') or video_data.get('description_ar'),'thumbnail': 'http://admin.mangomolo.com/analytics/%s' % img if img else None,'duration': int_or_none(video_data.get('duration')),diff --git a/yt_dlp/extractor/bitwave.py b/yt_dlp/extractor/bitwave.pyindex eb16c469df..e6e093f597 100644--- a/yt_dlp/extractor/bitwave.py+++ b/yt_dlp/extractor/bitwave.py@@ -51,7 +51,7 @@ class BitwaveStreamIE(InfoExtractor):return {'id': username,- 'title': self._live_title(channel['data']['title']),+ 'title': channel['data']['title'],'uploader': username,'uploader_id': username,'formats': formats,diff --git a/yt_dlp/extractor/bongacams.py b/yt_dlp/extractor/bongacams.pyindex 9e7551136e..4e346e7b6e 100644--- a/yt_dlp/extractor/bongacams.py+++ b/yt_dlp/extractor/bongacams.py@@ -49,7 +49,7 @@ class BongaCamsIE(InfoExtractor):return {'id': channel_id,- 'title': self._live_title(uploader or uploader_id),+ 'title': uploader or uploader_id,'uploader': uploader,'uploader_id': uploader_id,'like_count': like_count,diff --git a/yt_dlp/extractor/brightcove.py b/yt_dlp/extractor/brightcove.pyindex 82bb76f299..6fd15653c5 100644--- a/yt_dlp/extractor/brightcove.py+++ b/yt_dlp/extractor/brightcove.py@@ -581,7 +581,7 @@ class BrightcoveNewIE(AdobePassIE):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'description': clean_html(json_data.get('description')),'thumbnail': json_data.get('thumbnail') or json_data.get('poster'),'thumbnials': thumbnails,diff --git a/yt_dlp/extractor/cam4.py b/yt_dlp/extractor/cam4.pyindex 30daf2be9a..f47de9176d 100644--- a/yt_dlp/extractor/cam4.py+++ b/yt_dlp/extractor/cam4.py@@ -25,7 +25,7 @@ class CAM4IE(InfoExtractor):return {'id': channel_id,- 'title': self._live_title(channel_id),+ 'title': channel_id,'is_live': True,'age_limit': 18,'formats': formats,diff --git a/yt_dlp/extractor/cammodels.py b/yt_dlp/extractor/cammodels.pyindex eb2a8b4c6a..3dc19377b3 100644--- a/yt_dlp/extractor/cammodels.py+++ b/yt_dlp/extractor/cammodels.py@@ -91,7 +91,7 @@ class CamModelsIE(InfoExtractor):return {'id': user_id,- 'title': self._live_title(user_id),+ 'title': user_id,'is_live': True,'formats': formats,'age_limit': 18diff --git a/yt_dlp/extractor/ceskatelevize.py b/yt_dlp/extractor/ceskatelevize.pyindex 6ca2f38b5f..6c90b247ee 100644--- a/yt_dlp/extractor/ceskatelevize.py+++ b/yt_dlp/extractor/ceskatelevize.py@@ -212,8 +212,6 @@ class CeskaTelevizeIE(InfoExtractor):if playlist_len == 1:final_title = playlist_title or title- if is_live:- final_title = self._live_title(final_title)else:final_title = '%s (%s)' % (playlist_title, title)diff --git a/yt_dlp/extractor/chaturbate.py b/yt_dlp/extractor/chaturbate.pyindex a459dcb8d5..8da51f9196 100644--- a/yt_dlp/extractor/chaturbate.py+++ b/yt_dlp/extractor/chaturbate.py@@ -101,7 +101,7 @@ class ChaturbateIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(video_id),+ 'title': video_id,'thumbnail': 'https://roomimg.stream.highwebmedia.com/ri/%s.jpg' % video_id,'age_limit': self._rta_search(webpage),'is_live': True,diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.pyindex 5562d18623..431d593512 100644--- a/yt_dlp/extractor/common.py+++ b/yt_dlp/extractor/common.py@@ -3456,10 +3456,8 @@ class InfoExtractor(object):return formatsdef _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 namedef _int(self, v, name, fatal=False, **kwargs):res = int_or_none(v, **kwargs)diff --git a/yt_dlp/extractor/dailymotion.py b/yt_dlp/extractor/dailymotion.pyindex e04e10b865..b4211e1e44 100644--- a/yt_dlp/extractor/dailymotion.py+++ b/yt_dlp/extractor/dailymotion.py@@ -305,7 +305,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'description': clean_html(media.get('description')),'thumbnails': thumbnails,'duration': int_or_none(metadata.get('duration')) or None,diff --git a/yt_dlp/extractor/dlive.py b/yt_dlp/extractor/dlive.pyindex 90462c0abb..7410eb6c87 100644--- a/yt_dlp/extractor/dlive.py+++ b/yt_dlp/extractor/dlive.py@@ -84,7 +84,7 @@ class DLiveStreamIE(InfoExtractor):self._sort_formats(formats)return {'id': display_name,- 'title': self._live_title(title),+ 'title': title,'uploader': display_name,'uploader_id': username,'formats': formats,diff --git a/yt_dlp/extractor/douyutv.py b/yt_dlp/extractor/douyutv.pyindex 9757f44225..26a8d645cd 100644--- a/yt_dlp/extractor/douyutv.py+++ b/yt_dlp/extractor/douyutv.py@@ -105,7 +105,7 @@ class DouyuTVIE(InfoExtractor):'aid': 'pcclient'})['data']['live_url']- title = self._live_title(unescapeHTML(room['room_name']))+ title = unescapeHTML(room['room_name'])description = room.get('show_details')thumbnail = room.get('room_src')uploader = room.get('nickname')diff --git a/yt_dlp/extractor/drtv.py b/yt_dlp/extractor/drtv.pyindex 7bb15f8d4c..70134204c5 100644--- a/yt_dlp/extractor/drtv.py+++ b/yt_dlp/extractor/drtv.py@@ -321,7 +321,7 @@ class DRTVLiveIE(InfoExtractor):channel_data = self._download_json('https://www.dr.dk/mu-online/api/1.0/channel/' + channel_id,channel_id)- title = self._live_title(channel_data['Title'])+ title = channel_data['Title']formats = []for streaming_server in channel_data.get('StreamingServers', []):diff --git a/yt_dlp/extractor/filmon.py b/yt_dlp/extractor/filmon.pyindex f775fe0bae..7b43ecc0f9 100644--- a/yt_dlp/extractor/filmon.py+++ b/yt_dlp/extractor/filmon.py@@ -170,7 +170,7 @@ class FilmOnChannelIE(InfoExtractor):return {'id': channel_id,'display_id': channel_data.get('alias'),- 'title': self._live_title(title) if is_live else title,+ 'title': title,'description': channel_data.get('description'),'thumbnails': thumbnails,'formats': formats,diff --git a/yt_dlp/extractor/francetv.py b/yt_dlp/extractor/francetv.pyindex bc5ef4df97..877c5c0556 100644--- a/yt_dlp/extractor/francetv.py+++ b/yt_dlp/extractor/francetv.py@@ -203,7 +203,7 @@ class FranceTVIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'thumbnail': image,'duration': duration,'timestamp': timestamp,diff --git a/yt_dlp/extractor/freshlive.py b/yt_dlp/extractor/freshlive.pyindex 72a8459453..ad19b81094 100644--- a/yt_dlp/extractor/freshlive.py+++ b/yt_dlp/extractor/freshlive.py@@ -59,9 +59,6 @@ class FreshLiveIE(InfoExtractor):stream_url, video_id, 'mp4','m3u8_native', m3u8_id='hls')- if is_live:- title = self._live_title(title)-return {'id': video_id,'formats': formats,diff --git a/yt_dlp/extractor/hitbox.py b/yt_dlp/extractor/hitbox.pyindex 3e5ff2685e..0470d0a99c 100644--- a/yt_dlp/extractor/hitbox.py+++ b/yt_dlp/extractor/hitbox.py@@ -209,6 +209,6 @@ class HitboxLiveIE(HitboxIE):'https://www.smashcast.tv/api/media/live', video_id)metadata['formats'] = formatsmetadata['is_live'] = True- metadata['title'] = self._live_title(metadata.get('title'))+ metadata['title'] = metadata.get('title')return metadatadiff --git a/yt_dlp/extractor/imggaming.py b/yt_dlp/extractor/imggaming.pyindex ef20a4b9e8..14d3fad55d 100644--- a/yt_dlp/extractor/imggaming.py+++ b/yt_dlp/extractor/imggaming.py@@ -88,7 +88,7 @@ class ImgGamingBaseIE(InfoExtractor):video_data = self._download_json(dve_api_url, media_id)is_live = media_type == 'live'if is_live:- title = self._live_title(self._call_api('event/', media_id)['title'])+ title = self._call_api('event/', media_id)['title']else:title = video_data['name']diff --git a/yt_dlp/extractor/ivideon.py b/yt_dlp/extractor/ivideon.pyindex 01e7b22d4c..44b2208468 100644--- a/yt_dlp/extractor/ivideon.py+++ b/yt_dlp/extractor/ivideon.py@@ -75,7 +75,7 @@ class IvideonIE(InfoExtractor):return {'id': server_id,- 'title': self._live_title(camera_name or server_id),+ 'title': camera_name or server_id,'description': description,'is_live': True,'formats': formats,diff --git a/yt_dlp/extractor/laola1tv.py b/yt_dlp/extractor/laola1tv.pyindex fa217365a3..b5d27c2f07 100644--- a/yt_dlp/extractor/laola1tv.py+++ b/yt_dlp/extractor/laola1tv.py@@ -112,7 +112,7 @@ class Laola1TvEmbedIE(InfoExtractor):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,@@ -161,7 +161,7 @@ class Laola1TvBaseIE(Laola1TvEmbedIE):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,diff --git a/yt_dlp/extractor/line.py b/yt_dlp/extractor/line.pyindex d4bcae6c1c..e1d5f21e17 100644--- a/yt_dlp/extractor/line.py+++ b/yt_dlp/extractor/line.py@@ -116,7 +116,7 @@ class LineLiveBaseIE(InfoExtractor):return {'id': broadcast_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'thumbnails': thumbnails,'timestamp': int_or_none(item.get('createdAt')),'channel': channel.get('name'),diff --git a/yt_dlp/extractor/livestream.py b/yt_dlp/extractor/livestream.pyindex f591289ecd..45bf26d26c 100644--- a/yt_dlp/extractor/livestream.py+++ b/yt_dlp/extractor/livestream.py@@ -176,7 +176,7 @@ class LivestreamIE(InfoExtractor):return {'id': broadcast_id,'formats': formats,- 'title': self._live_title(stream_info['stream_title']) if is_live else stream_info['stream_title'],+ 'title': stream_info['stream_title'],'thumbnail': stream_info.get('thumbnail_url'),'is_live': is_live,}@@ -344,7 +344,7 @@ class LivestreamOriginalIE(InfoExtractor):is_live = video_data.get('isLive')info.update({'id': content_id,- 'title': self._live_title(info['title']) if is_live else info['title'],+ 'title': info['title'],'formats': self._extract_video_formats(video_data, content_id),'is_live': is_live,})diff --git a/yt_dlp/extractor/mangomolo.py b/yt_dlp/extractor/mangomolo.pyindex acee370e93..68ce138b3e 100644--- a/yt_dlp/extractor/mangomolo.py+++ b/yt_dlp/extractor/mangomolo.py@@ -33,7 +33,7 @@ class MangomoloBaseIE(InfoExtractor):return {'id': page_id,- 'title': self._live_title(page_id) if self._IS_LIVE else page_id,+ 'title': page_id,'uploader_id': hidden_inputs.get('userid'),'duration': int_or_none(hidden_inputs.get('duration')),'is_live': self._IS_LIVE,diff --git a/yt_dlp/extractor/matchtv.py b/yt_dlp/extractor/matchtv.pyindex bc9933a813..e003b8d259 100644--- a/yt_dlp/extractor/matchtv.py+++ b/yt_dlp/extractor/matchtv.py@@ -49,7 +49,7 @@ class MatchTVIE(InfoExtractor):self._sort_formats(formats)return {'id': video_id,- 'title': self._live_title('Матч ТВ - Прямой эфир'),+ 'title': 'Матч ТВ - Прямой эфир','is_live': True,'formats': formats,}diff --git a/yt_dlp/extractor/muenchentv.py b/yt_dlp/extractor/muenchentv.pyindex d256236d18..a53929e1b4 100644--- a/yt_dlp/extractor/muenchentv.py+++ b/yt_dlp/extractor/muenchentv.py@@ -33,7 +33,7 @@ class MuenchenTVIE(InfoExtractor):display_id = 'live'webpage = self._download_webpage(url, display_id)- title = self._live_title(self._og_search_title(webpage))+ title = self._og_search_title(webpage)data_js = self._search_regex(r'(?s)\nplaylist:\s*(\[.*?}\]),',diff --git a/yt_dlp/extractor/nbc.py b/yt_dlp/extractor/nbc.pyindex f304f191af..cd573690b2 100644--- a/yt_dlp/extractor/nbc.py+++ b/yt_dlp/extractor/nbc.py@@ -305,7 +305,7 @@ class NBCSportsStreamIE(AdobePassIE):self._sort_formats(formats)return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'description': live_source.get('description'),'formats': formats,'is_live': is_live,@@ -545,8 +545,6 @@ class NBCOlympicsStreamIE(AdobePassIE):title = event_config['eventTitle']is_live = {'live': True, 'replay': False}.get(event_config.get('eventStatus'))- if is_live:- title = self._live_title(title)source_url = self._download_json(f'https://api-leap.nbcsports.com/feeds/assets/{pid}?application=NBCOlympics&platform=desktop&format=nbc-player&env=staging',diff --git a/yt_dlp/extractor/ndr.py b/yt_dlp/extractor/ndr.pyindex f2bae2c1a0..1917254b8d 100644--- a/yt_dlp/extractor/ndr.py+++ b/yt_dlp/extractor/ndr.py@@ -245,8 +245,6 @@ class NDREmbedBaseIE(InfoExtractor):live = playlist.get('config', {}).get('streamType') in ['httpVideoLive', 'httpAudioLive']title = config['title']- if live:- title = self._live_title(title)uploader = ppjson.get('config', {}).get('branding')upload_date = ppjson.get('config', {}).get('publicationDate')duration = int_or_none(config.get('duration'))diff --git a/yt_dlp/extractor/nfl.py b/yt_dlp/extractor/nfl.pyindex 871923e4c6..821276a31b 100644--- a/yt_dlp/extractor/nfl.py+++ b/yt_dlp/extractor/nfl.py@@ -89,7 +89,7 @@ class NFLBaseIE(InfoExtractor):'ext': determine_ext(image_url, 'jpg'),}]info.update({- 'title': self._live_title(title) if is_live else title,+ 'title': title,'is_live': is_live,'description': clean_html(item.get('description')),'thumbnails': thumbnails,diff --git a/yt_dlp/extractor/npo.py b/yt_dlp/extractor/npo.pyindex ed547d04b3..a8aaef6f16 100644--- a/yt_dlp/extractor/npo.py+++ b/yt_dlp/extractor/npo.py@@ -467,7 +467,7 @@ class NPOIE(NPOBaseIE):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')),@@ -561,7 +561,7 @@ class NPORadioIE(InfoExtractor):return {'id': video_id,'url': stream['url'],- 'title': self._live_title(title),+ 'title': title,'acodec': codec,'ext': codec,'is_live': True,diff --git a/yt_dlp/extractor/odnoklassniki.py b/yt_dlp/extractor/odnoklassniki.pyindex eeb57f2fed..42f210a9b7 100644--- a/yt_dlp/extractor/odnoklassniki.py+++ b/yt_dlp/extractor/odnoklassniki.py@@ -235,7 +235,7 @@ class OdnoklassnikiIE(InfoExtractor):assert titleif provider == 'LIVE_TV_APP':- info['title'] = self._live_title(title)+ info['title'] = titlequality = qualities(('4', '0', '1', '2', '3', '5'))diff --git a/yt_dlp/extractor/oktoberfesttv.py b/yt_dlp/extractor/oktoberfesttv.pyindex a914068f95..276567436b 100644--- a/yt_dlp/extractor/oktoberfesttv.py+++ b/yt_dlp/extractor/oktoberfesttv.py@@ -25,8 +25,8 @@ class OktoberfestTVIE(InfoExtractor):video_id = self._match_id(url)webpage = self._download_webpage(url, video_id)- title = self._live_title(self._html_search_regex(- r'<h1><strong>.*?</strong>(.*?)</h1>', webpage, 'title'))+ title = self._html_search_regex(+ r'<h1><strong>.*?</strong>(.*?)</h1>', webpage, 'title')clip = self._search_regex(r"clip:\s*\{\s*url:\s*'([^']+)'", webpage, 'clip')diff --git a/yt_dlp/extractor/picarto.py b/yt_dlp/extractor/picarto.pyindex 17d08d69ee..adf21fda87 100644--- a/yt_dlp/extractor/picarto.py+++ b/yt_dlp/extractor/picarto.py@@ -77,7 +77,7 @@ class PicartoIE(InfoExtractor):return {'id': channel_id,- 'title': self._live_title(title.strip()),+ 'title': title.strip(),'is_live': True,'channel': channel_id,'channel_id': metadata.get('id'),diff --git a/yt_dlp/extractor/playtvak.py b/yt_dlp/extractor/playtvak.pyindex 84e92dda49..30c8a599e7 100644--- a/yt_dlp/extractor/playtvak.py+++ b/yt_dlp/extractor/playtvak.py@@ -167,8 +167,6 @@ class PlaytvakIE(InfoExtractor):title = item['title']is_live = item['type'] == 'stream'- if is_live:- title = self._live_title(title)description = self._og_search_description(webpage, default=None) or self._html_search_meta('description', webpage, 'description', default=None)timestamp = Nonediff --git a/yt_dlp/extractor/radiode.py b/yt_dlp/extractor/radiode.pyindex 2c06c8b1e4..0382873637 100644--- a/yt_dlp/extractor/radiode.py+++ b/yt_dlp/extractor/radiode.py@@ -29,7 +29,7 @@ class RadioDeIE(InfoExtractor):webpage, 'broadcast')broadcast = self._parse_json(jscode, radio_id)- title = self._live_title(broadcast['name'])+ title = broadcast['name']description = broadcast.get('description') or broadcast.get('shortDescription')thumbnail = broadcast.get('picture4Url') or broadcast.get('picture4TransUrl') or broadcast.get('logo100x100')diff --git a/yt_dlp/extractor/rai.py b/yt_dlp/extractor/rai.pyindex 4699fe17ec..39e57decd5 100644--- a/yt_dlp/extractor/rai.py+++ b/yt_dlp/extractor/rai.py@@ -318,8 +318,7 @@ class RaiPlayIE(RaiBaseIE):info = {'id': remove_start(media.get('id'), 'ContentItem-') or video_id,'display_id': video_id,- 'title': self._live_title(title) if relinker_info.get(- 'is_live') else title,+ 'title': title,'alt_title': strip_or_none(alt_title),'description': media.get('description'),'uploader': strip_or_none(media.get('channel')),diff --git a/yt_dlp/extractor/rtbf.py b/yt_dlp/extractor/rtbf.pyindex f9979d0a49..4b61fdb17e 100644--- a/yt_dlp/extractor/rtbf.py+++ b/yt_dlp/extractor/rtbf.py@@ -85,8 +85,6 @@ class RTBFIE(InfoExtractor):title = data['title']is_live = data.get('isLive')- if is_live:- title = self._live_title(title)height_re = r'-(\d+)p\.'formats = []diff --git a/yt_dlp/extractor/rtve.py b/yt_dlp/extractor/rtve.pyindex 59832eeac8..0654fb08b5 100644--- a/yt_dlp/extractor/rtve.py+++ b/yt_dlp/extractor/rtve.py@@ -160,7 +160,7 @@ class RTVEALaCartaIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'formats': formats,'thumbnail': info.get('image'),'subtitles': subtitles,@@ -230,7 +230,7 @@ class RTVELiveIE(RTVEALaCartaIE):return {'id': video_id,- 'title': self._live_title(title),+ 'title': title,'formats': self._extract_png_formats(vidplayer_id),'is_live': True,}diff --git a/yt_dlp/extractor/rutv.py b/yt_dlp/extractor/rutv.pyindex 7e0de994a4..3de86b2328 100644--- a/yt_dlp/extractor/rutv.py+++ b/yt_dlp/extractor/rutv.py@@ -201,7 +201,7 @@ class RUTVIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'description': description,'thumbnail': thumbnail,'view_count': view_count,diff --git a/yt_dlp/extractor/showroomlive.py b/yt_dlp/extractor/showroomlive.pyindex efd9d561ff..1aada69ac3 100644--- a/yt_dlp/extractor/showroomlive.py+++ b/yt_dlp/extractor/showroomlive.py@@ -73,7 +73,7 @@ class ShowRoomLiveIE(InfoExtractor):return {'id': compat_str(room.get('live_id') or broadcaster_id),- 'title': self._live_title(title),+ 'title': title,'description': room.get('description'),'timestamp': int_or_none(room.get('current_live_started_at')),'uploader': uploader,diff --git a/yt_dlp/extractor/skyit.py b/yt_dlp/extractor/skyit.pyindex 14a4d8d4c7..496bb42a29 100644--- a/yt_dlp/extractor/skyit.py+++ b/yt_dlp/extractor/skyit.py@@ -55,7 +55,7 @@ class SkyItPlayerIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'formats': formats,'thumbnail': dict_get(video, ('video_still', 'video_still_medium', 'thumb')),'description': video.get('short_desc') or None,diff --git a/yt_dlp/extractor/skylinewebcams.py b/yt_dlp/extractor/skylinewebcams.pyindex b7f8ac7368..47bbb7632e 100644--- a/yt_dlp/extractor/skylinewebcams.py+++ b/yt_dlp/extractor/skylinewebcams.py@@ -36,7 +36,7 @@ class SkylineWebcamsIE(InfoExtractor):'id': video_id,'url': stream_url,'ext': 'mp4',- 'title': self._live_title(title),+ 'title': title,'description': description,'is_live': True,}diff --git a/yt_dlp/extractor/stripchat.py b/yt_dlp/extractor/stripchat.pyindex efd0afc75e..0d4a0ce4c0 100644--- a/yt_dlp/extractor/stripchat.py+++ b/yt_dlp/extractor/stripchat.py@@ -57,7 +57,7 @@ class StripchatIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(video_id),+ 'title': video_id,'description': self._og_search_description(webpage),'is_live': True,'formats': formats,diff --git a/yt_dlp/extractor/svt.py b/yt_dlp/extractor/svt.pyindex 489f197fe1..6ad01a912d 100644--- a/yt_dlp/extractor/svt.py+++ b/yt_dlp/extractor/svt.py@@ -203,10 +203,6 @@ class SVTPlayIE(SVTPlayBaseIE):'only_matching': True,}]- def _adjust_title(self, info):- if info['is_live']:- info['title'] = self._live_title(info['title'])-def _extract_by_video_id(self, video_id, webpage=None):data = self._download_json('https://api.svt.se/videoplayer-api/video/%s' % video_id,@@ -220,7 +216,6 @@ class SVTPlayIE(SVTPlayBaseIE):if not title:title = video_idinfo_dict['title'] = title- self._adjust_title(info_dict)return info_dictdef _real_extract(self, url):@@ -251,7 +246,6 @@ class SVTPlayIE(SVTPlayBaseIE):'title': data['context']['dispatcher']['stores']['MetaStore']['title'],'thumbnail': thumbnail,})- self._adjust_title(info_dict)return info_dictsvt_id = try_get(diff --git a/yt_dlp/extractor/telebruxelles.py b/yt_dlp/extractor/telebruxelles.pyindex a0353fe3ae..9e8c89bd63 100644--- a/yt_dlp/extractor/telebruxelles.py+++ b/yt_dlp/extractor/telebruxelles.py@@ -69,7 +69,7 @@ class TeleBruxellesIE(InfoExtractor):return {'id': article_id or display_id,'display_id': display_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'description': description,'formats': formats,'is_live': is_live,diff --git a/yt_dlp/extractor/threeqsdn.py b/yt_dlp/extractor/threeqsdn.pyindex e5c6a6de1c..22b4fe7c8c 100644--- a/yt_dlp/extractor/threeqsdn.py+++ b/yt_dlp/extractor/threeqsdn.py@@ -148,7 +148,7 @@ class ThreeQSDNIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(title) if live else title,+ 'title': title,'thumbnail': config.get('poster') or None,'description': config.get('description') or None,'timestamp': parse_iso8601(config.get('upload_date')),diff --git a/yt_dlp/extractor/trovo.py b/yt_dlp/extractor/trovo.pyindex 127a5d2dcd..580cb533b1 100644--- a/yt_dlp/extractor/trovo.py+++ b/yt_dlp/extractor/trovo.py@@ -62,7 +62,7 @@ class TrovoIE(TrovoBaseIE):raise ExtractorError('%s is offline' % username, expected=True)program_info = live_info['programInfo']program_id = program_info['id']- title = self._live_title(program_info['title'])+ title = program_info['title']formats = []for stream_info in (program_info.get('streamInfo') or []):diff --git a/yt_dlp/extractor/tunein.py b/yt_dlp/extractor/tunein.pyindex c7a5f5a63a..7e51de89ed 100644--- a/yt_dlp/extractor/tunein.py+++ b/yt_dlp/extractor/tunein.py@@ -62,7 +62,7 @@ class TuneInBaseIE(InfoExtractor):return {'id': content_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'formats': formats,'thumbnail': thumbnail,'location': location,diff --git a/yt_dlp/extractor/turner.py b/yt_dlp/extractor/turner.pyindex 32125bc79f..519dc323cd 100644--- a/yt_dlp/extractor/turner.py+++ b/yt_dlp/extractor/turner.py@@ -205,7 +205,7 @@ class TurnerBaseIE(AdobePassIE):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'formats': formats,'subtitles': subtitles,'thumbnails': thumbnails,diff --git a/yt_dlp/extractor/tv2.py b/yt_dlp/extractor/tv2.pyindex da351eeb0e..b48dfe389f 100644--- a/yt_dlp/extractor/tv2.py+++ b/yt_dlp/extractor/tv2.py@@ -106,7 +106,7 @@ class TV2IE(InfoExtractor):return {'id': video_id,'url': video_url,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'description': strip_or_none(asset.get('description')),'thumbnails': thumbnails,'timestamp': parse_iso8601(asset.get('live_broadcast_time') or asset.get('update_time')),@@ -271,7 +271,7 @@ class KatsomoIE(InfoExtractor):return {'id': video_id,'url': video_url,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'description': strip_or_none(asset.get('description')),'thumbnails': thumbnails,'timestamp': parse_iso8601(asset.get('createTime')),diff --git a/yt_dlp/extractor/tvnet.py b/yt_dlp/extractor/tvnet.pyindex 4222ff9ee2..4fe8dfb6c2 100644--- a/yt_dlp/extractor/tvnet.py+++ b/yt_dlp/extractor/tvnet.py@@ -130,9 +130,6 @@ class TVNetIE(InfoExtractor):r'data-image=(["\'])(?P<url>(?:https?:)?//.+?)\1', webpage,'thumbnail', default=None, group='url'))- if is_live:- title = self._live_title(title)-view_count = int_or_none(self._search_regex(r'(?s)<div[^>]+\bclass=["\'].*?view-count[^>]+>.*?(\d+).*?</div>',webpage, 'view count', default=None))diff --git a/yt_dlp/extractor/tvplayer.py b/yt_dlp/extractor/tvplayer.pyindex 8f8686a654..5970596b21 100644--- a/yt_dlp/extractor/tvplayer.py+++ b/yt_dlp/extractor/tvplayer.py@@ -80,7 +80,7 @@ class TVPlayerIE(InfoExtractor):return {'id': resource_id,'display_id': display_id,- 'title': self._live_title(title),+ 'title': title,'formats': formats,'is_live': True,}diff --git a/yt_dlp/extractor/twitch.py b/yt_dlp/extractor/twitch.pyindex cd97f0a245..54e500edd0 100644--- a/yt_dlp/extractor/twitch.py+++ b/yt_dlp/extractor/twitch.py@@ -903,7 +903,7 @@ class TwitchStreamIE(TwitchBaseIE):return {'id': stream_id,'display_id': channel_name,- 'title': self._live_title(title),+ 'title': title,'description': description,'thumbnail': thumbnail,'uploader': uploader,diff --git a/yt_dlp/extractor/vgtv.py b/yt_dlp/extractor/vgtv.pyindex b6131ff828..10083cd241 100644--- a/yt_dlp/extractor/vgtv.py+++ b/yt_dlp/extractor/vgtv.py@@ -242,7 +242,7 @@ class VGTVIE(XstreamIE):info.update({'id': video_id,- 'title': self._live_title(data['title']) if is_live else data['title'],+ 'title': data['title'],'description': data['description'],'thumbnail': data['images']['main'] + '?t[]=900x506q80','timestamp': data['published'],diff --git a/yt_dlp/extractor/vimeo.py b/yt_dlp/extractor/vimeo.pyindex 8c3b6af65e..57391d7669 100644--- a/yt_dlp/extractor/vimeo.py+++ b/yt_dlp/extractor/vimeo.py@@ -224,7 +224,7 @@ class VimeoBaseInfoExtractor(InfoExtractor):return {'id': str_or_none(video_data.get('id')) or video_id,- 'title': self._live_title(video_title) if is_live else video_title,+ 'title': video_title,'uploader': owner.get('name'),'uploader_id': video_uploader_url.split('/')[-1] if video_uploader_url else None,'uploader_url': video_uploader_url,diff --git a/yt_dlp/extractor/vk.py b/yt_dlp/extractor/vk.pyindex 9a5c9ee6bc..5cdb1542dd 100644--- a/yt_dlp/extractor/vk.py+++ b/yt_dlp/extractor/vk.py@@ -434,8 +434,6 @@ class VKIE(VKBaseIE):# 2 = live# 3 = post live (finished live)is_live = data.get('live') == 2- if is_live:- title = self._live_title(title)timestamp = unified_timestamp(self._html_search_regex(r'class=["\']mv_info_date[^>]+>([^<]+)(?:<|from)', info_page,diff --git a/yt_dlp/extractor/vlive.py b/yt_dlp/extractor/vlive.pyindex 8fccf1b63b..547bdd3237 100644--- a/yt_dlp/extractor/vlive.py+++ b/yt_dlp/extractor/vlive.py@@ -210,7 +210,7 @@ class VLiveIE(VLiveBaseIE):self._sort_formats(formats)info = get_common_fields()info.update({- 'title': self._live_title(video['title']),+ 'title': video['title'],'id': video_id,'formats': formats,'is_live': True,diff --git a/yt_dlp/extractor/vyborymos.py b/yt_dlp/extractor/vyborymos.pyindex 9e703c4b67..4d93666c54 100644--- a/yt_dlp/extractor/vyborymos.py+++ b/yt_dlp/extractor/vyborymos.py@@ -44,11 +44,11 @@ class VyboryMosIE(InfoExtractor):info = self._download_json('http://vybory.mos.ru/json/voting_stations/%s/%s.json'% (compat_str(station_id)[:3], station_id),- station_id, 'Downloading station JSON', fatal=False)+ station_id, 'Downloading station JSON', fatal=False) or {}return {'id': station_id,- 'title': self._live_title(info['name'] if info else station_id),+ 'title': info.get('name') or station_id,'description': info.get('address'),'is_live': True,'formats': formats,diff --git a/yt_dlp/extractor/wdr.py b/yt_dlp/extractor/wdr.pyindex d3229d8af3..45bfe5f3a4 100644--- a/yt_dlp/extractor/wdr.py+++ b/yt_dlp/extractor/wdr.py@@ -117,7 +117,7 @@ class WDRIE(InfoExtractor):return {'id': tracker_data.get('trackerClipId', video_id),- 'title': self._live_title(title) if is_live else title,+ 'title': title,'alt_title': tracker_data.get('trackerClipSubcategory'),'formats': formats,'subtitles': subtitles,diff --git a/yt_dlp/extractor/yahoo.py b/yt_dlp/extractor/yahoo.pyindex 53556de007..313e596f56 100644--- a/yt_dlp/extractor/yahoo.py+++ b/yt_dlp/extractor/yahoo.py@@ -264,7 +264,7 @@ class YahooIE(InfoExtractor):return {'id': video_id,- 'title': self._live_title(title) if is_live else title,+ 'title': title,'formats': formats,'thumbnails': thumbnails,'description': clean_html(video.get('description')),diff --git a/yt_dlp/extractor/younow.py b/yt_dlp/extractor/younow.pyindex 04dbc87fc6..128faa30df 100644--- a/yt_dlp/extractor/younow.py+++ b/yt_dlp/extractor/younow.py@@ -58,7 +58,7 @@ class YouNowLiveIE(InfoExtractor):return {'id': uploader,'is_live': True,- 'title': self._live_title(uploader),+ 'title': uploader,'thumbnail': data.get('awsUrl'),'tags': data.get('tags'),'categories': data.get('tags'),diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.pyindex 2bc1b5e675..8f64b66571 100644--- a/yt_dlp/extractor/youtube.py+++ b/yt_dlp/extractor/youtube.py@@ -2810,7 +2810,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):info = {'id': video_id,- 'title': self._live_title(video_title) if is_live else video_title,+ 'title': video_title,'formats': formats,'thumbnails': thumbnails,# The best thumbnail that we are sure exists. Prevents unnecessarydiff --git a/yt_dlp/extractor/zattoo.py b/yt_dlp/extractor/zattoo.pyindex 98d15604df..9435920b24 100644--- a/yt_dlp/extractor/zattoo.py+++ b/yt_dlp/extractor/zattoo.py@@ -187,7 +187,7 @@ class ZattooPlatformBaseIE(InfoExtractor):cid = self._extract_cid(video_id, channel_name)info_dict = {'id': channel_name,- 'title': self._live_title(channel_name),+ 'title': channel_name,'is_live': True,}else: