diff options
Diffstat (limited to 'hypervideo_dl/extractor/radlive.py')
-rw-r--r-- | hypervideo_dl/extractor/radlive.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hypervideo_dl/extractor/radlive.py b/hypervideo_dl/extractor/radlive.py index 2de7ab0..dc98973 100644 --- a/hypervideo_dl/extractor/radlive.py +++ b/hypervideo_dl/extractor/radlive.py @@ -1,6 +1,12 @@ import json -from ..utils import ExtractorError, traverse_obj, try_get, unified_timestamp +from ..utils import ( + ExtractorError, + format_field, + traverse_obj, + try_get, + unified_timestamp +) from .common import InfoExtractor @@ -74,7 +80,7 @@ class RadLiveIE(InfoExtractor): 'release_timestamp': release_date, 'channel': channel.get('name'), 'channel_id': channel_id, - 'channel_url': f'https://rad.live/content/channel/{channel_id}' if channel_id else None, + 'channel_url': format_field(channel_id, template='https://rad.live/content/channel/%s'), } if content_type == 'episode': |