mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-14 07:12:41 +00:00
Do not import *
This commit is contained in:
parent
44a5f1718a
commit
a4fd04158e
2 changed files with 39 additions and 7 deletions
|
@ -2,9 +2,15 @@ import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import datetime
|
|
||||||
|
|
||||||
from .utils import *
|
|
||||||
|
from .utils import (
|
||||||
|
compat_subprocess_get_DEVNULL,
|
||||||
|
encodeFilename,
|
||||||
|
PostProcessingError,
|
||||||
|
shell_quote,
|
||||||
|
subtitles_filename,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class PostProcessor(object):
|
class PostProcessor(object):
|
||||||
|
|
|
@ -47,17 +47,43 @@ import shlex
|
||||||
import socket
|
import socket
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import warnings
|
import traceback
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
|
||||||
from .utils import *
|
from .utils import (
|
||||||
|
compat_cookiejar,
|
||||||
|
compat_print,
|
||||||
|
compat_str,
|
||||||
|
compat_urllib_request,
|
||||||
|
DateRange,
|
||||||
|
decodeOption,
|
||||||
|
determine_ext,
|
||||||
|
DownloadError,
|
||||||
|
get_cachedir,
|
||||||
|
make_HTTPS_handler,
|
||||||
|
MaxDownloadsReached,
|
||||||
|
platform_name,
|
||||||
|
preferredencoding,
|
||||||
|
SameFileError,
|
||||||
|
std_headers,
|
||||||
|
write_string,
|
||||||
|
YoutubeDLHandler,
|
||||||
|
)
|
||||||
from .update import update_self
|
from .update import update_self
|
||||||
from .version import __version__
|
from .version import __version__
|
||||||
from .FileDownloader import *
|
from .FileDownloader import (
|
||||||
|
FileDownloader,
|
||||||
|
)
|
||||||
from .extractor import gen_extractors
|
from .extractor import gen_extractors
|
||||||
from .YoutubeDL import YoutubeDL
|
from .YoutubeDL import YoutubeDL
|
||||||
from .PostProcessor import *
|
from .PostProcessor import (
|
||||||
|
FFmpegMetadataPP,
|
||||||
|
FFmpegVideoConvertor,
|
||||||
|
FFmpegExtractAudioPP,
|
||||||
|
FFmpegEmbedSubtitlePP,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def parseOpts(overrideArguments=None):
|
def parseOpts(overrideArguments=None):
|
||||||
def _readOptions(filename_bytes):
|
def _readOptions(filename_bytes):
|
||||||
|
@ -689,7 +715,7 @@ def _real_main(argv=None):
|
||||||
if opts.cookiefile is not None:
|
if opts.cookiefile is not None:
|
||||||
try:
|
try:
|
||||||
jar.save()
|
jar.save()
|
||||||
except (IOError, OSError) as err:
|
except (IOError, OSError):
|
||||||
sys.exit(u'ERROR: unable to save cookie jar')
|
sys.exit(u'ERROR: unable to save cookie jar')
|
||||||
|
|
||||||
sys.exit(retcode)
|
sys.exit(retcode)
|
||||||
|
|
Loading…
Reference in a new issue