2021-09-29 20:53:33 +00:00
|
|
|
# flake8: noqa: F401
|
|
|
|
|
2021-11-09 22:44:42 +00:00
|
|
|
from .common import PostProcessor
|
2015-04-24 06:48:49 +00:00
|
|
|
from .embedthumbnail import EmbedThumbnailPP
|
2022-04-11 22:32:57 +00:00
|
|
|
from .exec import ExecAfterDownloadPP, ExecPP
|
2014-01-07 04:59:22 +00:00
|
|
|
from .ffmpeg import (
|
2022-01-13 11:01:08 +00:00
|
|
|
FFmpegConcatPP,
|
2022-04-11 22:32:57 +00:00
|
|
|
FFmpegCopyStreamPP,
|
2014-10-26 15:31:52 +00:00
|
|
|
FFmpegEmbedSubtitlePP,
|
|
|
|
FFmpegExtractAudioPP,
|
2021-12-20 06:06:46 +00:00
|
|
|
FFmpegFixupDuplicateMoovPP,
|
2021-06-21 17:23:17 +00:00
|
|
|
FFmpegFixupDurationPP,
|
2016-03-01 20:08:50 +00:00
|
|
|
FFmpegFixupM3u8PP,
|
2015-01-23 17:39:12 +00:00
|
|
|
FFmpegFixupM4aPP,
|
2022-04-11 22:32:57 +00:00
|
|
|
FFmpegFixupStretchedPP,
|
|
|
|
FFmpegFixupTimestampPP,
|
2014-01-07 04:59:22 +00:00
|
|
|
FFmpegMergerPP,
|
|
|
|
FFmpegMetadataPP,
|
2022-04-11 22:32:57 +00:00
|
|
|
FFmpegPostProcessor,
|
|
|
|
FFmpegSplitChaptersPP,
|
2015-02-28 13:43:24 +00:00
|
|
|
FFmpegSubtitlesConvertorPP,
|
2021-04-10 22:18:52 +00:00
|
|
|
FFmpegThumbnailsConvertorPP,
|
2021-04-11 00:22:55 +00:00
|
|
|
FFmpegVideoConvertorPP,
|
|
|
|
FFmpegVideoRemuxerPP,
|
2013-10-15 00:07:26 +00:00
|
|
|
)
|
2021-08-09 19:52:55 +00:00
|
|
|
from .metadataparser import (
|
|
|
|
MetadataFromFieldPP,
|
|
|
|
MetadataFromTitlePP,
|
|
|
|
MetadataParserPP,
|
|
|
|
)
|
2021-09-29 20:53:33 +00:00
|
|
|
from .modify_chapters import ModifyChaptersPP
|
2021-01-23 12:18:12 +00:00
|
|
|
from .movefilesafterdownload import MoveFilesAfterDownloadPP
|
2020-11-15 00:28:41 +00:00
|
|
|
from .sponskrub import SponSkrubPP
|
2021-09-29 20:53:33 +00:00
|
|
|
from .sponsorblock import SponsorBlockPP
|
|
|
|
from .xattrpp import XAttrMetadataPP
|
2023-01-01 04:29:22 +00:00
|
|
|
from ..plugins import load_plugins
|
2021-09-29 20:53:33 +00:00
|
|
|
|
2023-01-01 04:29:22 +00:00
|
|
|
_PLUGIN_CLASSES = load_plugins('postprocessor', 'PP')
|
2014-01-07 04:59:22 +00:00
|
|
|
|
2014-12-15 00:06:25 +00:00
|
|
|
|
|
|
|
def get_postprocessor(key):
|
|
|
|
return globals()[key + 'PP']
|
|
|
|
|
|
|
|
|
2023-01-01 04:29:22 +00:00
|
|
|
globals().update(_PLUGIN_CLASSES)
|
2021-11-09 22:44:42 +00:00
|
|
|
__all__ = [name for name in globals().keys() if name.endswith('PP')]
|
|
|
|
__all__.extend(('PostProcessor', 'FFmpegPostProcessor'))
|