mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 16:57:40 +00:00
Move postprocessor into its own package
This commit is contained in:
parent
ad84831537
commit
56327689a2
4 changed files with 9 additions and 7 deletions
5
setup.py
5
setup.py
|
@ -71,7 +71,10 @@ setup(
|
||||||
author_email='ytdl@yt-dl.org',
|
author_email='ytdl@yt-dl.org',
|
||||||
maintainer='Philipp Hagemeister',
|
maintainer='Philipp Hagemeister',
|
||||||
maintainer_email='phihag@phihag.de',
|
maintainer_email='phihag@phihag.de',
|
||||||
packages=['youtube_dl', 'youtube_dl.extractor', 'youtube_dl.downloader'],
|
packages=[
|
||||||
|
'youtube_dl',
|
||||||
|
'youtube_dl.extractor', 'youtube_dl.downloader',
|
||||||
|
'youtube_dl.postprocessor'],
|
||||||
|
|
||||||
# Provokes warning on most systems (why?!)
|
# Provokes warning on most systems (why?!)
|
||||||
# test_suite = 'nose.collector',
|
# test_suite = 'nose.collector',
|
||||||
|
|
|
@ -55,7 +55,7 @@ from .utils import (
|
||||||
)
|
)
|
||||||
from .extractor import get_info_extractor, gen_extractors
|
from .extractor import get_info_extractor, gen_extractors
|
||||||
from .downloader import get_suitable_downloader
|
from .downloader import get_suitable_downloader
|
||||||
from .PostProcessor import FFmpegMergerPP
|
from .postprocessor import FFmpegMergerPP
|
||||||
from .version import __version__
|
from .version import __version__
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ from .FileDownloader import (
|
||||||
from .extractor import gen_extractors
|
from .extractor import gen_extractors
|
||||||
from .version import __version__
|
from .version import __version__
|
||||||
from .YoutubeDL import YoutubeDL
|
from .YoutubeDL import YoutubeDL
|
||||||
from .PostProcessor import (
|
from .postprocessor import (
|
||||||
FFmpegMetadataPP,
|
FFmpegMetadataPP,
|
||||||
FFmpegVideoConvertor,
|
FFmpegVideoConvertor,
|
||||||
FFmpegExtractAudioPP,
|
FFmpegExtractAudioPP,
|
||||||
|
|
|
@ -4,13 +4,14 @@ import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
|
||||||
from .utils import (
|
from ..utils import (
|
||||||
compat_subprocess_get_DEVNULL,
|
compat_subprocess_get_DEVNULL,
|
||||||
encodeFilename,
|
encodeFilename,
|
||||||
|
hyphenate_date,
|
||||||
PostProcessingError,
|
PostProcessingError,
|
||||||
|
prepend_extension,
|
||||||
shell_quote,
|
shell_quote,
|
||||||
subtitles_filename,
|
subtitles_filename,
|
||||||
prepend_extension,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -540,8 +541,6 @@ class XAttrMetadataPP(PostProcessor):
|
||||||
def run(self, info):
|
def run(self, info):
|
||||||
""" Set extended attributes on downloaded file (if xattr support is found). """
|
""" Set extended attributes on downloaded file (if xattr support is found). """
|
||||||
|
|
||||||
from .utils import hyphenate_date
|
|
||||||
|
|
||||||
# This mess below finds the best xattr tool for the job and creates a
|
# This mess below finds the best xattr tool for the job and creates a
|
||||||
# "write_xattr" function.
|
# "write_xattr" function.
|
||||||
try:
|
try:
|
Loading…
Reference in a new issue