Skip to content

Commit

Permalink
API: GetVideoList and GetVideo: populate Cast
Browse files Browse the repository at this point in the history
There was already a tag for Cast Memebers but it was not filled in.
Populate the cast tag with cast members on the database.
  • Loading branch information
bennettpeter committed Aug 3, 2024
1 parent d532d99 commit 1fa849b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mythtv/programs/mythbackend/servicesv2/v2serviceUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,19 @@ void V2FillVideoMetadataInfo (
}

V2FillGenreList(pVideoMetadataInfo->Genres(), pVideoMetadataInfo->GetId());

auto castList = pMetadata->GetCast();
V2CastMemberList* pCastMemberList = pVideoMetadataInfo->Cast();

QString actors = QObject::tr("Actors");
for (VideoMetadata::cast_entry ent : castList )
{
V2CastMember *pCastMember = pCastMemberList->AddNewCastMember();
pCastMember->setTranslatedRole(actors);
pCastMember->setRole("ACTOR");
pCastMember->setName(ent.second);
}

}

/////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 1fa849b

Please sign in to comment.