aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/line.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/line.py')
-rw-r--r--yt_dlp/extractor/line.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/line.py b/yt_dlp/extractor/line.py
index e1d5f21e1..24e04edb5 100644
--- a/yt_dlp/extractor/line.py
+++ b/yt_dlp/extractor/line.py
@@ -5,6 +5,7 @@ from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
+ format_field,
int_or_none,
js_to_json,
str_or_none,
@@ -121,7 +122,7 @@ class LineLiveBaseIE(InfoExtractor):
'timestamp': int_or_none(item.get('createdAt')),
'channel': channel.get('name'),
'channel_id': channel_id,
- 'channel_url': 'https://live.line.me/channels/' + channel_id if channel_id else None,
+ 'channel_url': format_field(channel_id, template='https://live.line.me/channels/%s'),
'duration': int_or_none(item.get('archiveDuration')),
'view_count': int_or_none(item.get('viewerCount')),
'comment_count': int_or_none(item.get('chatCount')),