projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove * imports
[youtube-dl]
/
youtube_dl
/
YoutubeDL.py
diff --git
a/youtube_dl/YoutubeDL.py
b/youtube_dl/YoutubeDL.py
index 6ea865bd9bb5544f792b4571b37972a9fd875645..6e5ae44d35920b09d2290bd4f97695060e333397 100644
(file)
--- a/
youtube_dl/YoutubeDL.py
+++ b/
youtube_dl/YoutubeDL.py
@@
-16,7
+16,31
@@
import traceback
if os.name == 'nt':
import ctypes
if os.name == 'nt':
import ctypes
-from .utils import *
+from .utils import (
+ compat_http_client,
+ compat_print,
+ compat_str,
+ compat_urllib_error,
+ compat_urllib_request,
+ ContentTooShortError,
+ date_from_str,
+ DateRange,
+ determine_ext,
+ DownloadError,
+ encodeFilename,
+ ExtractorError,
+ locked_file,
+ MaxDownloadsReached,
+ PostProcessingError,
+ preferredencoding,
+ SameFileError,
+ sanitize_filename,
+ subtitles_filename,
+ takewhile_inclusive,
+ UnavailableVideoError,
+ write_json_file,
+ write_string,
+)
from .extractor import get_info_extractor, gen_extractors
from .FileDownloader import FileDownloader
from .extractor import get_info_extractor, gen_extractors
from .FileDownloader import FileDownloader
@@
-267,7
+291,7
@@
class YoutubeDL(object):
"""Report file has already been fully downloaded."""
try:
self.to_screen(u'[download] %s has already been downloaded' % file_name)
"""Report file has already been fully downloaded."""
try:
self.to_screen(u'[download] %s has already been downloaded' % file_name)
- except
(UnicodeEncodeError) as er
r:
+ except
UnicodeEncodeErro
r:
self.to_screen(u'[download] The file has already been downloaded')
def increment_downloads(self):
self.to_screen(u'[download] The file has already been downloaded')
def increment_downloads(self):