naming
This commit is contained in:
parent
3ff41f396b
commit
1ba9efa950
2 changed files with 4 additions and 3 deletions
|
|
@ -5,7 +5,8 @@ import mediafile
|
||||||
|
|
||||||
from ytdl_sub.config.preset_options import OptionsValidator
|
from ytdl_sub.config.preset_options import OptionsValidator
|
||||||
from ytdl_sub.entries.entry import Entry
|
from ytdl_sub.entries.entry import Entry
|
||||||
from ytdl_sub.plugins.plugin import Plugin, PluginPriority
|
from ytdl_sub.plugins.plugin import Plugin
|
||||||
|
from ytdl_sub.plugins.plugin import PluginPriority
|
||||||
from ytdl_sub.utils.ffmpeg import FFMPEG
|
from ytdl_sub.utils.ffmpeg import FFMPEG
|
||||||
from ytdl_sub.utils.file_handler import FileHandler
|
from ytdl_sub.utils.file_handler import FileHandler
|
||||||
from ytdl_sub.utils.file_handler import FileMetadata
|
from ytdl_sub.utils.file_handler import FileMetadata
|
||||||
|
|
@ -33,7 +34,7 @@ class EmbedThumbnailOptions(BoolValidator, OptionsValidator):
|
||||||
|
|
||||||
class EmbedThumbnailPlugin(Plugin[EmbedThumbnailOptions]):
|
class EmbedThumbnailPlugin(Plugin[EmbedThumbnailOptions]):
|
||||||
plugin_options_type = EmbedThumbnailOptions
|
plugin_options_type = EmbedThumbnailOptions
|
||||||
priority = PluginPriority(post_process=PluginPriority.MODIFY_AFTER_FILE_CONVERT)
|
priority = PluginPriority(post_process=PluginPriority.POST_PROCESS_AFTER_FILE_CONVERT)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _embed_thumbnail(self) -> bool:
|
def _embed_thumbnail(self) -> bool:
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ class PluginPriority:
|
||||||
MODIFY_ENTRY_AFTER_SPLIT = 10
|
MODIFY_ENTRY_AFTER_SPLIT = 10
|
||||||
|
|
||||||
# if post_process is >= to this value, run after file_convert
|
# if post_process is >= to this value, run after file_convert
|
||||||
MODIFY_AFTER_FILE_CONVERT = 10
|
POST_PROCESS_AFTER_FILE_CONVERT = 10
|
||||||
|
|
||||||
MODIFY_ENTRY_FIRST = 0
|
MODIFY_ENTRY_FIRST = 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue