mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	Update to ytdl-commit-a803582
[peertube] only call description endpoint if necessary
a803582717
			
			
This commit is contained in:
		| @@ -569,15 +569,15 @@ class PeerTubeIE(InfoExtractor): | ||||
|             formats.append(f) | ||||
|         self._sort_formats(formats) | ||||
|  | ||||
|         full_description = self._call_api( | ||||
|             host, video_id, 'description', note='Downloading description JSON', | ||||
|             fatal=False) | ||||
|         description = video.get('description') | ||||
|         if len(description) >= 250: | ||||
|             # description is shortened | ||||
|             full_description = self._call_api( | ||||
|                 host, video_id, 'description', note='Downloading description JSON', | ||||
|                 fatal=False) | ||||
|  | ||||
|         description = None | ||||
|         if isinstance(full_description, dict): | ||||
|             description = str_or_none(full_description.get('description')) | ||||
|         if not description: | ||||
|             description = video.get('description') | ||||
|             if isinstance(full_description, dict): | ||||
|                 description = str_or_none(full_description.get('description')) or description | ||||
|  | ||||
|         subtitles = self.extract_subtitles(host, video_id) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan