mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 00:00:48 +01:00
ad3dc496bb
* Remove unnecessary uses of _list_from_options_callback
* Fix download tests - Bug from 6e84b21559
* Rename ExecAfterDownloadPP to ExecPP and refactor its tests
* Ensure _write_ytdl_file closes file handle on error - Potential fix for #517
62 lines
1.5 KiB
Python
62 lines
1.5 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 .sponskrub import SponSkrubPP
|
|
|
|
|
|
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',
|
|
'SponSkrubPP',
|
|
'XAttrMetadataPP',
|
|
]
|