﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
11264	For the ttvdb.py -N option, return all episode data that matches a episode name	r.d.vaughan@…	Raymond Wagner	"At this time when there are two TV episodes with identical episode names, the ttvdb.py grabber only returns metadata for the last matching episode in theTvdb.com. This can be the metadata for an episode that has not been broadcast yet.

With the attached patch, ttvdb.py now returns multiple episode's ""<item>"" metadata in a most recent broadcast (ascending) episode order. 

To be of value, this patch requires a MythTV change which when multiple ""<item>""s are returned by ttvdb.py, MythTV uses the program's ""original air date"" to match against the TTVDB episode's ""<releasedate>"". If there is no match or there is no program ""original air date"" then select the first ""<item>""s metadata, this will duplicate what is being used today.

Note that the thetvdb.com episode ""<releasedate>"" is unique for an episode and is identical for all languages.

The attached patch is valid for MythTV v0.25 and higher.

Basically this patch allows MythTV recording metadata to be a little more accurate. Recently the TV series Haven and American Horror Story both had identical episode names which using Schedule Direct's ""original air date"" could have been properly identified.
Changes to the python metadata bindings, MythWeb, Service APIs and/or the mythmetadatalookup may be require."	Patch - Feature	closed	minor	0.27.7	MythTV - Mythmetadatalookup	0.25-fixes	low	Won't Fix	ttvdb, scripts, metadata		0
