feat(songs): inject Category:Songs for pages with an album
Pages with a valid `album` field now get [[Category:Songs]] prepended before [[Category:Album:<name>]]. Companion/sibling pages without an album are unaffected. Updated SCHEMA.md and pipeline README accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -106,6 +106,7 @@ def build_wikitext(fm: dict, body_wikitext: str, source_url: str, source_ref: st
|
||||
|
||||
cat_parts = []
|
||||
if fm.get("album"):
|
||||
cat_parts.append(f"[[Category:Songs]]")
|
||||
cat_parts.append(f"[[Category:Album:{fm['album']}]]")
|
||||
for cat in (fm.get("categories") or []):
|
||||
cat_parts.append(f"[[Category:{cat}]]")
|
||||
|
||||
Reference in New Issue
Block a user