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

Add subtitle language_type and Embedded subtitle subclass #1148

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

getzze
Copy link
Collaborator

@getzze getzze commented Jul 6, 2024

language_type summarizes information about the subtitle type: hearing impaired, forced (only foreign parts), normal or unknown.

My idea is then to use it to score subtitles with 0 if they do not match the type (asked for HI and got normal), 1 if the type is unknown, and 2 if the type matches (asked for forced subtitle and got it).

The Embedded subclass will be used instead of video.subtitle_languages to check if subtitles with the given language and language_type were already present.

Copy link

github-actions bot commented Jul 6, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  subliminal
  subtitle.py 143, 165, 173, 179-183, 473-475, 488-494
Project Total  

This report was generated by python-coverage-comment-action

@getzze getzze force-pushed the add-languagetype-enum branch from 2c3914a to cc9266f Compare July 6, 2024 21:48
@getzze getzze merged commit 96c0165 into Diaoul:main Jul 9, 2024
20 checks passed
@getzze getzze deleted the add-languagetype-enum branch November 25, 2024 23:16
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.

1 participant