mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-16 15:52:13 +00:00
[cleanup] Misc (#10075)
Closes #10303 Authored by: bashonly, seproDev, jucor, c-basalt Co-authored-by: sepro <[email protected]> Co-authored-by: Julien Cornebise <[email protected]> Co-authored-by: c-basalt <[email protected]>
This commit is contained in:
co-authored by
sepro
Julien Cornebise
c-basalt
parent
d4b99a2333
commit
6aaf96a3d6
@@ -3,6 +3,7 @@ import re
|
||||
from .common import InfoExtractor
|
||||
from ..utils import (
|
||||
int_or_none,
|
||||
join_nonempty,
|
||||
parse_duration,
|
||||
urljoin,
|
||||
xpath_element,
|
||||
@@ -69,7 +70,7 @@ class HBOBaseIE(InfoExtractor):
|
||||
height = format_info.get('height')
|
||||
fmt = {
|
||||
'url': path,
|
||||
'format_id': 'http{}'.format(f'-{height}p' if height else ''),
|
||||
'format_id': join_nonempty('http'. height and f'{height}p'),
|
||||
'width': format_info.get('width'),
|
||||
'height': height,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user