Custom agent setting metadata but Plex displays worng metadata

I’m trying to create my own metadata agent for saved youtube videos but for some reason when the metadata is set on my videos it does not apply in plex even though when I log everything it seems to have no issues. When I added a random tv show and ran the agent it proprly modified the metadata. The only difference I can see between the tv show and my videos is that my videos episodes key is a date value and not an int. Also in the plex app under the title of the episode they show a date instead of Episode #. I have attached the init.py and to get a videos are in this format:
youtube/channel_name-[channel_id]/YYYY-MM-DD-[video_id]-video_title.mkv
init.zip|attachment (835 Bytes)

Excuse some of the pointless logging and setting everything the same I stripped everything down while testing to find the issue. Also here are some screen shots showing the agent working with adventure time but not my youtube videos.