# Collections

**URL:** <https://forums.plex.tv/t/collections/802392>\
**Category:** Metadata & Adding Files\
**Tags:** scanner-agent-dev\
**Created:** [July 28, 2022, 3:20pm UTC](https://forums.plex.tv/t/collections/802392 "2022-07-28T15:20:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JP.HUDSON](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@JP.HUDSON](https://forums.plex.tv/u/JP.HUDSON)\
**Post date:** [July 28, 2022, 3:20pm UTC](https://forums.plex.tv/t/collections/802392/1 "2022-07-28T15:20:43Z")

</div>

I have Plex Agent, I can scrape the web and add metadata, like country, cast, directors etc…  
I can create collections based on cast members and directors…  
This I have managed to do using **metadata.collections.add(‘Cast Name’)**

What would be really cool would be the ability to set the collections poster within the code to the actor’s photo which I already have.

I can add the picture in the UI but how would I do this via code in a film agent??

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [October 26, 2022, 3:21pm UTC](https://forums.plex.tv/t/collections/802392/2 "2022-10-26T15:21:25Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
