# Agent implementation: get episode titles from media

**URL:** https://forums.plex.tv/t/agent-implementation-get-episode-titles-from-media/12358
**Category:** Dev/API Corner
**Tags:** scanner-agent-dev
**Created:** [November 14, 2011, 10:47pm UTC](https://forums.plex.tv/t/agent-implementation-get-episode-titles-from-media/12358 "2011-11-14T22:47:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![gvanvoor](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@gvanvoor](https://forums.plex.tv/u/gvanvoor)
#### Post date: [November 14, 2011, 10:47pm UTC](https://forums.plex.tv/t/agent-implementation-get-episode-titles-from-media/12358/1 "2011-11-14T22:47:05Z")

</div>

Hi,  
  
  
  
I’m trying to write an agent that fetches information w.r.t. TV Shows and was wondering how to retrieve the episode titles and the total number of episodes in a season from the parameters passed to the update function.  
  
Thanks in advance.  
  
  
  
Kind regards,  
  
  
  
Greg.

---

<div class="post-metadata">

### Author: ![Coil](https://avatars.discourse-cdn.com/v4/letter/c/bb73d2/32.png) [@Coil](https://forums.plex.tv/u/Coil)
#### Post date: [November 24, 2011, 4:01pm UTC](https://forums.plex.tv/t/agent-implementation-get-episode-titles-from-media/12358/2 "2011-11-24T16:01:26Z")

</div>

> [@](#):
>
> Hi,  
>   
> I'm trying to write an agent that fetches information w.r.t. TV Shows and was wondering how to retrieve the episode titles and the total number of episodes in a season from the parameters passed to the update function.  
> Thanks in advance.  
>   
> Kind regards,  
>   
> Greg.

  
  
Hey, it's not clear when you begin, I know :)  
Take a look at my implementations for the movie and tv show on my podnapisi agent..  
Source here: https://github.com/Coi-l/PodnapisiSubtitles.bundle/blob/master/Contents/Code/\_\_init\_\_.py#157

---

<div class="post-metadata">

### Author: ![gvanvoor](https://avatars.discourse-cdn.com/v4/letter/g/a9a28c/32.png) [@gvanvoor](https://forums.plex.tv/u/gvanvoor)
#### Post date: [November 24, 2011, 5:45pm UTC](https://forums.plex.tv/t/agent-implementation-get-episode-titles-from-media/12358/3 "2011-11-24T17:45:40Z")

</div>

> [@](#):
>
> Hey, it's not clear when you begin, I know :)  
> Take a look at my implementations for the movie and tv show on my podnapisi agent..  
> Source here: https://github.com/Coi-l/PodnapisiSubtitles.bundle/blob/master/Contents/Code/\_\_init\_\_.py#157

  
  
Thanks. I had found out how to do it in the meantime (I should have posted it here...).

---

<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: [December 20, 2019, 9:36pm UTC](https://forums.plex.tv/t/agent-implementation-get-episode-titles-from-media/12358/4 "2019-12-20T21:36:47Z")

</div>

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