Skip to content

Conversation

@anikettuli
Copy link

@anikettuli anikettuli commented Jan 30, 2026

Fixes #910 - ASS/SSA subtitles styles were being ignored in newer versions.

Changed the default value of ass_subtitles_styling from false to true to match v4.4 behavior where subtitle styles (fonts, colors, positioning) were correctly preserved.

Changes:

  • Set ass_subtitles_styling default to true in Settings
  • Updated migration v21 to set assSubtitlesStyling to true
  • Updated related test expectations

Testing:

  • All 194 existing tests pass.

Fixes Stremio#910 - ASS/SSA subtitles styles were being ignored in newer versions.

Changed the default value of ass_subtitles_styling from false to true
to match v4.4 behavior where subtitle styles (fonts, colors, positioning)
were correctly preserved.

Changes:
- Set ass_subtitles_styling default to true in Settings
- Updated migration v21 to set assSubtitlesStyling to true
- Updated related test expectations
Copilot AI review requested due to automatic review settings January 30, 2026 07:29
Copy link

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 restores ASS/SSA subtitle styling behavior to match v4.4 by enabling styling by default and ensuring existing profiles are migrated accordingly.

Changes:

  • Set ass_subtitles_styling default to true in Settings and aligned serde default token expectations.
  • Updated settings_de and DefaultTokens unit tests to expect assSubtitlesStyling: true for default settings.
  • Adjusted the v21 storage migration to insert "assSubtitlesStyling": true for existing profiles and updated the corresponding migration test.

Reviewed changes

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

File Description
src/unit_tests/serde/settings.rs Updates deserialization tests so Settings::default() now serializes/deserializes with assSubtitlesStyling set to true.
src/unit_tests/serde/default_tokens_ext.rs Adjusts the default tokens for Settings so the generated default JSON includes assSubtitlesStyling: true.
src/types/profile/settings.rs Changes the Default implementation for Settings to set ass_subtitles_styling to true.
src/runtime/env.rs Modifies v21 migration to backfill assSubtitlesStyling as true and updates the migration test expectation accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

[Bug] ASS/SSA subtitles styles ignored in newer versions

1 participant