aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/carambatv.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/carambatv.py')
-rw-r--r--hypervideo_dl/extractor/carambatv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/hypervideo_dl/extractor/carambatv.py b/hypervideo_dl/extractor/carambatv.py
index b57b86a..7e5cc90 100644
--- a/hypervideo_dl/extractor/carambatv.py
+++ b/hypervideo_dl/extractor/carambatv.py
@@ -4,6 +4,7 @@ from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
+ format_field,
float_or_none,
int_or_none,
try_get,
@@ -43,7 +44,7 @@ class CarambaTVIE(InfoExtractor):
formats = [{
'url': base_url + f['fn'],
'height': int_or_none(f.get('height')),
- 'format_id': '%sp' % f['height'] if f.get('height') else None,
+ 'format_id': format_field(f, 'height', '%sp'),
} for f in video['qualities'] if f.get('fn')]
self._sort_formats(formats)