Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,7 @@ internal class SefariaBookPayloadReader(
?: schemaObj["heDescription"]?.stringOrNull()
}

/**
* Sefaria's real one-line summary (`heShortDesc`), distinct from the long
* `heDesc` read by [extractDescription]. Kept separate so `book.heShortDesc`
* holds the summary and `book.heDesc` the full text — previously the long
* text was stored under `heShortDesc` and this field went unused.
*/
// Real one-line summary → book.heShortDesc (long text goes to heDesc via extractDescription).
private fun extractShortDescription(schemaJson: JsonObject, schemaObj: JsonObject): String? {
return schemaJson["heShortDesc"]?.stringOrNull()
?: schemaObj["heShortDesc"]?.stringOrNull()
Expand Down
Loading