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 subtitles attribute to Video #1151

Merged
merged 3 commits into from
Jul 12, 2024
Merged

Add subtitles attribute to Video #1151

merged 3 commits into from
Jul 12, 2024

Conversation

getzze
Copy link
Collaborator

@getzze getzze commented Jul 6, 2024

Follow-up, MERGE ONLY AFTER REBASING FROM #1148

Video has a subtitle_languages attribute as a set of languages of already existing subtitles (embedded or external files). But to differentiate by language_type, we need to store this information. Therefore subtitle_languages is replaced by a subtitles attribute as a set of existing subtitles (language and language type). For (partial) compatibility, subtitle_languages is now a property that can only be get.

Also add frame_rate and duration attribute to Video to later compare to the downloaded subtitles.

@getzze getzze force-pushed the video-subtitles branch from ac5c3ae to 9f2326c Compare July 9, 2024 16:09
Copy link

github-actions bot commented Jul 9, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  subliminal
  core.py
  subtitle.py
  video.py
  subliminal/refiners
  hash.py
  metadata.py
Project Total  

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

@getzze getzze merged commit 19b190d into Diaoul:main Jul 12, 2024
20 checks passed
@getzze getzze deleted the video-subtitles branch November 25, 2024 23:15
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