diff options
author | Philipp Hagemeister <[email protected]> | 2014-10-26 23:13:42 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-10-26 23:13:42 +0100 |
commit | c9f08154a3dbf7272b1373c8e6aeea4a8d92b190 (patch) | |
tree | 0939e51ed556e9023614e88ab4b5ff583572620d | |
parent | 526b276fd7199414d199f2913bc794677d0933ac (diff) | |
download | youtube-dl-c9f08154a3dbf7272b1373c8e6aeea4a8d92b190.tar.gz youtube-dl-c9f08154a3dbf7272b1373c8e6aeea4a8d92b190.zip |
Remove unused imports
-rw-r--r-- | youtube_dl/extractor/audiomack.py | 2 | ||||
-rw-r--r-- | youtube_dl/extractor/br.py | 2 | ||||
-rw-r--r-- | youtube_dl/extractor/cliphunter.py | 5 | ||||
-rw-r--r-- | youtube_dl/extractor/faz.py | 3 | ||||
-rw-r--r-- | youtube_dl/extractor/nhl.py | 1 | ||||
-rw-r--r-- | youtube_dl/extractor/sportbox.py | 1 | ||||
-rw-r--r-- | youtube_dl/extractor/vimeo.py | 2 | ||||
-rw-r--r-- | youtube_dl/postprocessor/ffmpeg.py | 1 |
8 files changed, 2 insertions, 15 deletions
diff --git a/youtube_dl/extractor/audiomack.py b/youtube_dl/extractor/audiomack.py index 57446fddd..6232d2cd0 100644 --- a/youtube_dl/extractor/audiomack.py +++ b/youtube_dl/extractor/audiomack.py @@ -4,7 +4,7 @@ from __future__ import unicode_literals from .common import InfoExtractor from .soundcloud import SoundcloudIE from ..utils import ExtractorError -import datetime + import time diff --git a/youtube_dl/extractor/br.py b/youtube_dl/extractor/br.py index 2e277c8c3..45ba51732 100644 --- a/youtube_dl/extractor/br.py +++ b/youtube_dl/extractor/br.py @@ -1,8 +1,6 @@ # coding: utf-8 from __future__ import unicode_literals -import re - from .common import InfoExtractor from ..utils import ( ExtractorError, diff --git a/youtube_dl/extractor/cliphunter.py b/youtube_dl/extractor/cliphunter.py index d4227e6eb..2edab90a3 100644 --- a/youtube_dl/extractor/cliphunter.py +++ b/youtube_dl/extractor/cliphunter.py @@ -4,7 +4,6 @@ import json import re from .common import InfoExtractor -from ..utils import int_or_none _translation_table = { @@ -39,9 +38,7 @@ class CliphunterIE(InfoExtractor): } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') - + video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) video_title = self._search_regex( diff --git a/youtube_dl/extractor/faz.py b/youtube_dl/extractor/faz.py index f3d45b2be..3c39ca451 100644 --- a/youtube_dl/extractor/faz.py +++ b/youtube_dl/extractor/faz.py @@ -2,9 +2,6 @@ from __future__ import unicode_literals from .common import InfoExtractor -from ..utils import ( - determine_ext, -) class FazIE(InfoExtractor): diff --git a/youtube_dl/extractor/nhl.py b/youtube_dl/extractor/nhl.py index d66c2c6f8..82af6e330 100644 --- a/youtube_dl/extractor/nhl.py +++ b/youtube_dl/extractor/nhl.py @@ -7,7 +7,6 @@ from .common import InfoExtractor from ..utils import ( compat_urlparse, compat_urllib_parse, - determine_ext, unified_strdate, ) diff --git a/youtube_dl/extractor/sportbox.py b/youtube_dl/extractor/sportbox.py index b9cd35109..becdf658f 100644 --- a/youtube_dl/extractor/sportbox.py +++ b/youtube_dl/extractor/sportbox.py @@ -7,7 +7,6 @@ from .common import InfoExtractor from ..utils import ( parse_duration, parse_iso8601, - int_or_none, ) diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index 07959d3fe..5839c550d 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/youtube_dl/extractor/vimeo.py @@ -8,13 +8,11 @@ import itertools from .common import InfoExtractor from .subtitles import SubtitlesInfoExtractor from ..utils import ( - clean_html, compat_HTTPError, compat_urllib_parse, compat_urllib_request, compat_urlparse, ExtractorError, - get_element_by_attribute, InAdvancePagedList, int_or_none, RegexNotFoundError, diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 4963ffc92..083c79592 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -8,7 +8,6 @@ import time from .common import AudioConversionError, PostProcessor from ..utils import ( - check_executable, compat_subprocess_get_DEVNULL, encodeArgument, encodeFilename, |