You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add metadata support to SuggestionFrame for preserving group information (#251)
* Add metadata support to SuggestionFrame for preserving group information
This commit adds a metadata dictionary to SuggestionFrame (similar to
Video.backend_metadata) to store arbitrary metadata that isn't explicitly
represented in the data model. The primary use case is preserving the
"group" key when reading/writing SLP files, which was previously being
discarded.
Changes:
- Add metadata attribute to SuggestionFrame class with factory default
- Update read_suggestions to extract and pass group metadata
- Update write_suggestions to write group metadata if available
- Add comprehensive tests for metadata round-trip and backward compatibility
This maintains backward compatibility while enabling metadata preservation.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Add missing coverage test from previous PR
* Fix linting issues in test_video_reading.py
Remove unused variable and apply formatting changes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Simplify group metadata handling with .get() accessor
Use .get() with default value instead of conditional check since group
key should always be present. This simplifies the code and improves
coverage.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments