feat: add UpdateVersionAction
This commit is contained in:
parent
152546982c
commit
839f67ad0a
8 changed files with 260 additions and 139 deletions
|
|
@ -4,6 +4,7 @@ from loguru import logger
|
|||
from typer import Typer
|
||||
|
||||
from huesoporro.actions.import_from_vod import ImportFromVODAction
|
||||
from huesoporro.actions.misc.update_version_action import UpdateVersionAction
|
||||
from huesoporro.settings import Settings
|
||||
from huesoporro.svc.clean_cc_svc import CleanCCSvc
|
||||
from huesoporro.svc.download_closed_captions import DownloadClosedCaptionsSvc
|
||||
|
|
@ -22,3 +23,8 @@ def import_vod_cc(channel_name: str, youtube_url: str, db_path: Path | None = No
|
|||
)
|
||||
for cc_filepath in import_from_vod_action.run(channel_name, youtube_url):
|
||||
logger.info(f"Closed captions imported from {cc_filepath}")
|
||||
|
||||
|
||||
@app.command()
|
||||
def update_version(version: str, dry_run: bool = False):
|
||||
UpdateVersionAction().run(version, dry_run)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue