mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-23 02:26:37 -05:00
7a340e0df3
SponsorBlock options: * The fetched sponsor sections are written to infojson * `--sponsorblock-remove` removes specified chapters from file * `--sponsorblock-mark` marks the specified sponsor sections as chapters * `--sponsorblock-chapter-title` to specify sponsor chapter template * `--sponsorblock-api` to use a different API Related improvements: * Split `--embed-chapters` from `--embed-metadata` * Add `--remove-chapters` to remove arbitrary chapters * Add `--force-keyframes-at-cuts` for more accurate cuts when removing and splitting chapters Deprecates all `--sponskrub` options Authored by: nihil-admirari, pukkandan
66 lines
1.6 KiB
Python
66 lines
1.6 KiB
Python
from __future__ import unicode_literals
|
|
|
|
from .embedthumbnail import EmbedThumbnailPP
|
|
from .ffmpeg import (
|
|
FFmpegPostProcessor,
|
|
FFmpegEmbedSubtitlePP,
|
|
FFmpegExtractAudioPP,
|
|
FFmpegFixupDurationPP,
|
|
FFmpegFixupStretchedPP,
|
|
FFmpegFixupTimestampPP,
|
|
FFmpegFixupM3u8PP,
|
|
FFmpegFixupM4aPP,
|
|
FFmpegMergerPP,
|
|
FFmpegMetadataPP,
|
|
FFmpegSubtitlesConvertorPP,
|
|
FFmpegThumbnailsConvertorPP,
|
|
FFmpegSplitChaptersPP,
|
|
FFmpegVideoConvertorPP,
|
|
FFmpegVideoRemuxerPP,
|
|
)
|
|
from .xattrpp import XAttrMetadataPP
|
|
from .exec import ExecPP, ExecAfterDownloadPP
|
|
from .metadataparser import (
|
|
MetadataFromFieldPP,
|
|
MetadataFromTitlePP,
|
|
MetadataParserPP,
|
|
)
|
|
from .movefilesafterdownload import MoveFilesAfterDownloadPP
|
|
from .sponsorblock import SponsorBlockPP
|
|
from .sponskrub import SponSkrubPP
|
|
from .modify_chapters import ModifyChaptersPP
|
|
|
|
|
|
def get_postprocessor(key):
|
|
return globals()[key + 'PP']
|
|
|
|
|
|
__all__ = [
|
|
'FFmpegPostProcessor',
|
|
'EmbedThumbnailPP',
|
|
'ExecPP',
|
|
'ExecAfterDownloadPP',
|
|
'FFmpegEmbedSubtitlePP',
|
|
'FFmpegExtractAudioPP',
|
|
'FFmpegSplitChaptersPP',
|
|
'FFmpegFixupDurationPP',
|
|
'FFmpegFixupM3u8PP',
|
|
'FFmpegFixupM4aPP',
|
|
'FFmpegFixupStretchedPP',
|
|
'FFmpegFixupTimestampPP',
|
|
'FFmpegMergerPP',
|
|
'FFmpegMetadataPP',
|
|
'FFmpegSubtitlesConvertorPP',
|
|
'FFmpegThumbnailsConvertorPP',
|
|
'FFmpegVideoConvertorPP',
|
|
'FFmpegVideoRemuxerPP',
|
|
'MetadataParserPP',
|
|
'MetadataFromFieldPP',
|
|
'MetadataFromTitlePP',
|
|
'MoveFilesAfterDownloadPP',
|
|
'SponsorBlockPP',
|
|
'SponSkrubPP',
|
|
'ModifyChaptersPP',
|
|
'XAttrMetadataPP',
|
|
]
|