Skip to content

Implement subtitle utilities and gRPC skeleton#4

Merged
jdfalk merged 1 commit intomainfrom
codex/review-project-documentation-and-implement-features
Jun 7, 2025
Merged

Implement subtitle utilities and gRPC skeleton#4
jdfalk merged 1 commit intomainfrom
codex/review-project-documentation-and-implement-features

Conversation

@jdfalk
Copy link
Copy Markdown
Owner

@jdfalk jdfalk commented Jun 7, 2025

Summary

  • add subtitle conversion and merging helpers
  • add gRPC translator proto and server skeleton
  • wrap translation providers in a dispatcher
  • refactor commands to use new helpers
  • add basic tests and sample subtitle

Testing

  • go test ./...

https://chatgpt.com/codex/tasks/task_e_684378a736b48321abf009e5c0fa9831

@jdfalk jdfalk added the codex Created or modified by AI/automation agents label Jun 7, 2025 — with ChatGPT Codex Connector
@jdfalk jdfalk requested a review from Copilot June 7, 2025 00:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements subtitle conversion and merging utilities, adds a gRPC translator proto and server skeleton, and refactors command-line commands to leverage the new helpers.

  • Added subtitle conversion and merge functions with corresponding tests and sample subtitle data.
  • Introduced gRPC definitions, generated code, and a basic server implementation for translation.
  • Refactored commands to utilize the new translation provider dispatcher and subtitle helpers.

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated no comments.

Show a summary per file
File Description
testdata/simple.srt Added a sample SRT file for testing subtitle conversion.
proto/translator.proto Added gRPC translator proto definitions.
pkg/translatorpb/proto/translator*.pb.go Generated gRPC and protobuf Go code.
pkg/translator/translator.go Updated provider dispatcher and adjusted function signatures.
pkg/translator/translator_test.go Added tests for translation functionality and unsupported service.
pkg/subtitles/{merge,extract,convert}.go Implemented subtitle merge, extract placeholder, and conversion.
pkg/subtitles/*_test.go Added tests for subtitle merging and conversion.
go.mod Updated module dependencies for gRPC, protobuf, and related packages.
cmd/{translate,merge,convert}.go, grpcserver/main.go Refactored CLI commands to use the new helpers and added a gRPC server.
Comments suppressed due to low confidence (1)

pkg/translator/translator.go:26

  • Please update the documentation comment for TranslateFunc to reflect the additional 'apiKey' parameter in its signature.
type TranslateFunc func(text, targetLang, apiKey string) (string, error)

@jdfalk jdfalk merged commit f0aed1e into main Jun 7, 2025
@jdfalk jdfalk deleted the codex/review-project-documentation-and-implement-features branch June 7, 2025 00:52
@github-actions
Copy link
Copy Markdown
Contributor

Issue closed via automated workflow.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 3, 2025

Issue closed via automated workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex Created or modified by AI/automation agents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants