Clean up unused imports and other minor mistakes
This commit is contained in:
parent
cc13cc0251
commit
f3682997d7
16 changed files with 5 additions and 21 deletions
|
@ -4,7 +4,6 @@ import re
|
|||
from .subtitles import SubtitlesInfoExtractor
|
||||
|
||||
from ..utils import (
|
||||
compat_str,
|
||||
RegexNotFoundError,
|
||||
)
|
||||
|
||||
|
@ -113,6 +112,6 @@ class TEDIE(SubtitlesInfoExtractor):
|
|||
url = 'http://www.ted.com/talks/subtitles/id/%s/lang/%s/format/srt' % (video_id, l)
|
||||
sub_lang_list[l] = url
|
||||
return sub_lang_list
|
||||
except RegexNotFoundError as err:
|
||||
except RegexNotFoundError:
|
||||
self._downloader.report_warning(u'video doesn\'t have subtitles')
|
||||
return {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue