mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-04 02:20:10 +09:00
Apply suggestions from code review
This commit is contained in:
parent
2d7b8c95e3
commit
f7c7ffbd09
@ -4,6 +4,7 @@ from __future__ import unicode_literals
|
|||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
|
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
|
ExtractorError,
|
||||||
merge_dicts,
|
merge_dicts,
|
||||||
T,
|
T,
|
||||||
traverse_obj,
|
traverse_obj,
|
||||||
@ -32,7 +33,7 @@ class BandlabIE(InfoExtractor):
|
|||||||
track_url = traverse_obj(config, ('track', 'sample', 'audioUrl', T(url_or_none)))
|
track_url = traverse_obj(config, ('track', 'sample', 'audioUrl', T(url_or_none)))
|
||||||
if not track_url:
|
if not track_url:
|
||||||
raise ExtractorError(
|
raise ExtractorError(
|
||||||
'[%s] 'No video formats found!' % (self.ie_key(), ),
|
'[%s] No video formats found!' % (self.ie_key(), ),
|
||||||
video_id=track_id, expected=True)
|
video_id=track_id, expected=True)
|
||||||
title = config['track']['name']
|
title = config['track']['name']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user