SeriesContextDto
Series context for template and condition evaluation.
This structure provides a unified interface for evaluating templates and conditions against series data. It aggregates data from various sources (series, metadata, external IDs, book count) into a single context object.
Template Usage
In Handlebars templates, fields are accessible via:
{{seriesId}}- Series UUID{{bookCount}}- Number of books{{metadata.title}}- Series title{{metadata.genres}}- Genre array{{externalIds.plugin:mangabaka.id}}- External ID from a source{{customMetadata.myField}}- Custom metadata field
JSON Structure
{
"seriesId": "550e8400-e29b-41d4-a716-446655440000",
"bookCount": 5,
"metadata": {
"title": "One Piece",
"genres": ["Action", "Adventure"],
"tags": ["pirates"]
},
"externalIds": {
"plugin:mangabaka": { "id": "12345", "url": "..." }
},
"customMetadata": { "myField": "value" }
}
Number of books in the series
5Custom metadata fields (preserved as-is, no case transformation). Can contain any JSON structure defined by the user.
externalIds object
External IDs mapped by source name. Keys are source identifiers (e.g., "plugin:mangabaka", "comicinfo").
property name* ExternalIdContextDto
External ID context for template evaluation.
Represents an external ID from a metadata provider (plugin, comicinfo, etc.) in a simplified format suitable for template access.
Metadata hash for change detection (if available)
External ID value
12345External URL (if available)
https://mangabaka.com/series/12345metadata object
Series metadata
Age rating (e.g., 13, 16, 18)
13Whether age_rating is locked
Whether custom_metadata is locked
Genre names
["Action","Adventure","Comedy"]Whether genres are locked
Imprint (sub-publisher)
Jump ComicsWhether imprint is locked
Language code (BCP47 format)
jaWhether language is locked
Publisher name
ShueishaWhether publisher is locked
Reading direction (ltr, rtl, ttb, webtoon)
rtlWhether reading_direction is locked
Series status (ongoing, ended, hiatus, abandoned, unknown)
ongoingWhether status is locked
Series description/summary
Follow Monkey D. Luffy on his adventure...Whether summary is locked
Tag names
["pirates","treasure","friendship"]Whether tags are locked
Series title
One PieceWhether title is locked
Custom sort name
One PieceWhether title_sort is locked
Expected total book count
110Whether total_book_count is locked
Publication year
1997Whether year is locked
Series UUID
550e8400-e29b-41d4-a716-446655440000{
"bookCount": 5,
"customMetadata": "Unknown Type: object,null",
"externalIds": {
"plugin:mangabaka": {
"id": "12345",
"url": "https://mangabaka.com/series/12345"
}
},
"metadata": {
"ageRating": 13,
"ageRatingLock": true,
"customMetadataLock": true,
"genres": [
"Action",
"Adventure",
"Comedy"
],
"genresLock": true,
"imprint": "Jump Comics",
"imprintLock": true,
"language": "ja",
"languageLock": true,
"publisher": "Shueisha",
"publisherLock": true,
"readingDirection": "rtl",
"readingDirectionLock": true,
"status": "ongoing",
"statusLock": true,
"summary": "Follow Monkey D. Luffy on his adventure...",
"summaryLock": true,
"tags": [
"pirates",
"treasure",
"friendship"
],
"tagsLock": true,
"title": "One Piece",
"titleLock": true,
"titleSort": "One Piece",
"titleSortLock": true,
"totalBookCount": 110,
"totalBookCountLock": true,
"year": 1997,
"yearLock": true
},
"seriesId": "550e8400-e29b-41d4-a716-446655440000"
}