mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[cleanup] Misc (#10075)
Closes #10303 Authored by: bashonly, seproDev, jucor, c-basalt Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com> Co-authored-by: Julien Cornebise <julien@cornebise.com> Co-authored-by: c-basalt <117849907+c-basalt@users.noreply.github.com>
This commit is contained in:
		| @@ -2,6 +2,7 @@ from .common import InfoExtractor | ||||
| from ..utils import ( | ||||
|     determine_ext, | ||||
|     int_or_none, | ||||
|     join_nonempty, | ||||
|     parse_duration, | ||||
|     parse_iso8601, | ||||
| ) | ||||
| @@ -41,7 +42,7 @@ class NHLBaseIE(InfoExtractor): | ||||
|             else: | ||||
|                 height = int_or_none(playback.get('height')) | ||||
|                 formats.append({ | ||||
|                     'format_id': playback.get('name', 'http' + (f'-{height}p' if height else '')), | ||||
|                     'format_id': playback.get('name') or join_nonempty('http', height and f'{height}p'), | ||||
|                     'url': playback_url, | ||||
|                     'width': int_or_none(playback.get('width')), | ||||
|                     'height': height, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bashonly
					bashonly