__init__.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # flake8: noqa: F401
  2. from .common import PostProcessor
  3. from .embedthumbnail import EmbedThumbnailPP
  4. from .exec import ExecAfterDownloadPP, ExecPP
  5. from .ffmpeg import (
  6. FFmpegConcatPP,
  7. FFmpegCopyStreamPP,
  8. FFmpegEmbedSubtitlePP,
  9. FFmpegExtractAudioPP,
  10. FFmpegFixupDuplicateMoovPP,
  11. FFmpegFixupDurationPP,
  12. FFmpegFixupM3u8PP,
  13. FFmpegFixupM4aPP,
  14. FFmpegFixupStretchedPP,
  15. FFmpegFixupTimestampPP,
  16. FFmpegMergerPP,
  17. FFmpegMetadataPP,
  18. FFmpegPostProcessor,
  19. FFmpegSplitChaptersPP,
  20. FFmpegSubtitlesConvertorPP,
  21. FFmpegThumbnailsConvertorPP,
  22. FFmpegVideoConvertorPP,
  23. FFmpegVideoRemuxerPP,
  24. )
  25. from .metadataparser import (
  26. MetadataFromFieldPP,
  27. MetadataFromTitlePP,
  28. MetadataParserPP,
  29. )
  30. from .modify_chapters import ModifyChaptersPP
  31. from .movefilesafterdownload import MoveFilesAfterDownloadPP
  32. from .sponskrub import SponSkrubPP
  33. from .sponsorblock import SponsorBlockPP
  34. from .xattrpp import XAttrMetadataPP
  35. from ..plugins import load_plugins
  36. _PLUGIN_CLASSES = load_plugins('postprocessor', 'PP')
  37. def get_postprocessor(key):
  38. return globals()[key + 'PP']
  39. globals().update(_PLUGIN_CLASSES)
  40. __all__ = [name for name in globals() if name.endswith('PP')]
  41. __all__.extend(('FFmpegPostProcessor', 'PostProcessor'))