Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCTO-10458-line_length #316

Merged
merged 2 commits into from
Jan 10, 2024
Merged

OCTO-10458-line_length #316

merged 2 commits into from
Jan 10, 2024

Conversation

OlteanuRares
Copy link
Contributor

No description provided.

@OlteanuRares OlteanuRares requested a review from a team as a code owner December 8, 2023 11:14
@OlteanuRares
Copy link
Contributor Author

We shoul test this with roll-up caption before merging. Only tested with https://media.console.pbs.org/admin/asset/6b82d406-4254-42c1-a005-a4664c32c53e/video/

@@ -232,6 +232,22 @@ def read(self, content, lang='en-US', simulate_roll_up=False, offset=0):
captions = CaptionSet({lang: self.caption_stash.get_all()})

# check captions for incorrect lengths
lines = []
Copy link
Contributor

Choose a reason for hiding this comment

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

this could be a separate method, the read method is already very crowded and it would be easier to read if instead of a new code block you would use a method call

@OlteanuRares OlteanuRares merged commit af8a61f into main Jan 10, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants