feat: add UpdateVersionAction

This commit is contained in:
cătălin 2025-03-05 12:40:19 +01:00
commit 839f67ad0a
No known key found for this signature in database
8 changed files with 260 additions and 139 deletions

View file

@ -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)