Index: mythtv/bindings/python/MythTV/MythVideo.py
===================================================================
--- mythtv/bindings/python/MythTV/MythVideo.py	(revision 20232)
+++ mythtv/bindings/python/MythTV/MythVideo.py	(working copy)
@@ -130,6 +130,25 @@ class MythVideo:
 		else:
 			return None
 
+	def getTitleId(self, title):
+		"""
+		Finds the MythVideo metadata id for the given Title from the MythDB, if any.
+
+		Returns None if no metadata was found.
+		"""
+		c = self.db.cursor()
+		c.execute("""
+				SELECT intid
+				FROM videometadata
+				WHERE title = %s""", (title,))
+		row = c.fetchone()
+		c.close()
+
+		if row is not None:
+			return row[0]
+		else:
+			return None
+
 	def hasMetadata(self, videopath):
 		"""
 		Determines if the given videopath has any metadata in the DB
@@ -172,6 +191,47 @@ class MythVideo:
 		else:
 			return None
 
+	def getTableFieldNames(self, tablename):
+		"""Finds the table field names
+		return array of field names in the order they are in the table
+		return None if the table does not exist
+		"""
+		table_names=[]
+		c = self.db.cursor()
+		try:
+			c.execute("DESC %s" % (tablename,))
+		except:
+			return None
+
+		while True: # Add field names until a break (no more fields)
+			name = c.fetchone()
+			if name != None:
+				table_names.append(name[0])
+				continue
+			break
+		c.close()
+		return table_names
+
+
+	def getMetadataDictionary(self, id):
+		"""
+		Finds the MythVideo metadata for the given id from the MythDB, if any and returns the meta data
+		as a dictionary of field names and meta data
+
+		Returns None if no metadata was found.
+		"""
+		field_names = self.getTableFieldNames('videometadata')
+		metadata = self.getMetadata(id)
+		if not metadata or not field_names:
+			return None
+
+		# Build a dictionary of the existing meta data
+		meta_dict={}
+		for i in range(len(field_names)):
+			meta_dict[field_names[i]] = metadata[i]
+		
+		return meta_dict
+
 	def setMetadata(self, data, id=None):
 		"""
 		Adds or updates the metadata in the database for a video item.
