mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-14 11:07:56 +01:00
3ae5e79774
Adds option `--use-postprocessor` to enable them
44 lines
1.1 KiB
Python
44 lines
1.1 KiB
Python
# flake8: noqa: F401
|
|
|
|
from ..utils import load_plugins
|
|
|
|
from .embedthumbnail import EmbedThumbnailPP
|
|
from .exec import ExecPP, ExecAfterDownloadPP
|
|
from .ffmpeg import (
|
|
FFmpegPostProcessor,
|
|
FFmpegEmbedSubtitlePP,
|
|
FFmpegExtractAudioPP,
|
|
FFmpegFixupDurationPP,
|
|
FFmpegFixupStretchedPP,
|
|
FFmpegFixupTimestampPP,
|
|
FFmpegFixupM3u8PP,
|
|
FFmpegFixupM4aPP,
|
|
FFmpegMergerPP,
|
|
FFmpegMetadataPP,
|
|
FFmpegSubtitlesConvertorPP,
|
|
FFmpegThumbnailsConvertorPP,
|
|
FFmpegSplitChaptersPP,
|
|
FFmpegVideoConvertorPP,
|
|
FFmpegVideoRemuxerPP,
|
|
)
|
|
from .metadataparser import (
|
|
MetadataFromFieldPP,
|
|
MetadataFromTitlePP,
|
|
MetadataParserPP,
|
|
)
|
|
from .modify_chapters import ModifyChaptersPP
|
|
from .movefilesafterdownload import MoveFilesAfterDownloadPP
|
|
from .sponskrub import SponSkrubPP
|
|
from .sponsorblock import SponsorBlockPP
|
|
from .xattrpp import XAttrMetadataPP
|
|
|
|
_PLUGIN_CLASSES = load_plugins('postprocessor', 'PP', globals())
|
|
|
|
|
|
def get_postprocessor(key):
|
|
return globals()[key + 'PP']
|
|
|
|
|
|
__all__ = [name for name in globals().keys() if name.endswith('IE')]
|
|
__all__.append('FFmpegPostProcessor')
|