aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/wsj.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/wsj.py')
-rw-r--r--yt_dlp/extractor/wsj.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/wsj.py b/yt_dlp/extractor/wsj.py
index 7b3f6aa2a..b6b656f7d 100644
--- a/yt_dlp/extractor/wsj.py
+++ b/yt_dlp/extractor/wsj.py
@@ -2,6 +2,7 @@ from .common import InfoExtractor
from ..utils import (
float_or_none,
int_or_none,
+ join_nonempty,
unified_strdate,
)
@@ -76,7 +77,7 @@ class WSJIE(InfoExtractor):
tbr = int_or_none(v.get('bitrate'))
formats.append({
'url': mp4_url,
- 'format_id': 'http' + (f'-{tbr}' if tbr else ''),
+ 'format_id': join_nonempty('http', tbr),
'tbr': tbr,
'width': int_or_none(v.get('width')),
'height': int_or_none(v.get('height')),