mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-24 15:09:55 +00:00
[PR #1848] fix(xds): Don't output empty XDS content entries #2610
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1848
State: closed
Merged: Yes
Summary
Root Cause
When outputting ContentAdvisory XDS data, the code always called
xdsprint()for both:However, if there are no content flags (like for TV-G), the content string was empty, causing an empty duplicate XDS entry to be written.
Changes
if (content[0])check before outputting the content stringTest plan
Fixes regression test 113 (XDS output mismatch).
🤖 Generated with Claude Code