mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +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:
		| @@ -1,6 +1,11 @@ | ||||
| from .common import InfoExtractor | ||||
| from ..networking import Request | ||||
| from ..utils import float_or_none, int_or_none, parse_iso8601 | ||||
| from ..utils import ( | ||||
|     float_or_none, | ||||
|     int_or_none, | ||||
|     join_nonempty, | ||||
|     parse_iso8601, | ||||
| ) | ||||
| 
 | ||||
| 
 | ||||
| class EitbIE(InfoExtractor): | ||||
| @@ -37,12 +42,9 @@ class EitbIE(InfoExtractor): | ||||
|             if not video_url: | ||||
|                 continue | ||||
|             tbr = float_or_none(rendition.get('ENCODING_RATE'), 1000) | ||||
|             format_id = 'http' | ||||
|             if tbr: | ||||
|                 format_id += f'-{int(tbr)}' | ||||
|             formats.append({ | ||||
|                 'url': rendition['PMD_URL'], | ||||
|                 'format_id': format_id, | ||||
|                 'format_id': join_nonempty('http', int_or_none(tbr)), | ||||
|                 'width': int_or_none(rendition.get('FRAME_WIDTH')), | ||||
|                 'height': int_or_none(rendition.get('FRAME_HEIGHT')), | ||||
|                 'tbr': tbr, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 bashonly
					bashonly