This project has moved. For the latest updates, please go here.

Metadata Lookup

Jan 28, 2014 at 9:26 PM
I am using SageTV to record OTA HD TV shows using a Silicondust HDHomerun capture device.
The resulting file is an mpeg recording, with a filename as follows(ShowName-Season#-Episonde#-EpisodeName-Somesort of unique ID in SageTV database-video number(if computer reboots during a recording or something...instead of overwritting file it will increment this last number by one...sageTv knows to stitch these files together on playback):
SageTV has a plugin that scrapes the recording and generates the following file with the metadata:

Here is a link to the .propertes file:

I use MCEBuddy to convert my recordings to .mp4 and to cut the commercials so I can play them back commercial free in plex. Everytime I run MCEBuddy I get the error/email notification that MCEBuddy is unable to download the series information....which I understand since the original file name is not in the format recognized by MCEBuddy. So my question is a feature there a way to set up a mask or something to correctly download the series information since SageTV has a standard filenaming structure? If not is there a way to have MCEBuddy read the .properties file? This would allow me to use the renaming capabilities of MCEBuddy to generate a filename that imports/works well with Plex.
Jan 28, 2014 at 9:50 PM
if this properties file is a standard format, we can setup MCEBuddy to read the metadata from this file.

Open a new issue and put the details there and we'll look into it.

Jan 28, 2014 at 9:56 PM
Also need some clarifiations.

Is this the episode premiere date/time?

I don't see the recorded date and time, where is that?

What is SeriesInfoID and ExternalID and New?

When is Year used? (for movies?)

Jan 28, 2014 at 9:58 PM
Sounds good. One issue I will have with it reading the .properties file is the time delay between the recording and the time that the sagetv plugin generates the .properties file. In looking at the time stamp on some of these files it can be many hours after the recording is finished. Maybe this is something that can be addressed on the sagetv plugin side, I will have to check this out.

If it was able to do it from the filename structure that would eliminate even the need for this plugin on the sagetv side of things.

Jan 28, 2014 at 10:58 PM
Otherwise set the age delay on the settings page of mcebuddy which will give it time to finish processing before being processed by mcebuddy.

Jan 29, 2014 at 3:06 AM
Maybe this screenshot will is from the web based scraper BMT (SageTV plugin). It lists the OriginalAirDate as: 2014-01-21 19:00 does that number in your post somehow convert to that??? Here is the link to the screenshot.

Here is a link to a movie recorded via SageTV...yes year is for Movies.

The age delay sounds like it will work.

Jan 29, 2014 at 7:37 AM
can you get me a sample properties file for a movie which should help complete the metadat reading. having the tvdb or imdb id is a big plus. is that there for series also?

Jan 29, 2014 at 2:41 PM

I will get you some samples...however in opening one...I noticed an issue with my Movies and they are not scanning correctly. I have asked a fried to email me one of his properties files. Check out this link, it is the documentation for the SageTV BMT scraping plugin. About half way through the document under the section: "Updating Metadata for a single item" there is a definition for each of the fields in the property file.
Jan 29, 2014 at 4:26 PM
okay will wait

Jan 29, 2014 at 7:27 PM are some files. notice the filename on the first has no extension since it is a folder name...within the Avatar folder is the Video_TS folder as this is a native DVD rip that I have not converted to .mp4 yet (MCEBuddy can't do this conversion so I have been doing them one by one in handbrake)

Here is another TV Show .properties file:

Let me know if you need anything else.

Feb 3, 2014 at 7:35 PM
do you have a sports show properties file also?
Would appreciate another tv series file to validate

Feb 3, 2014 at 8:02 PM
Here are some more TV series files...let me know if you need more. I just grabbed one form ABC, PBS, NBC, and CBS since I had already given you one from FOX.

I do not have any sports show properties files. I would be more than happy to create one, however I do not have cable, so I will probably have to wait until either the Olympics starting later this week or something on one of the over the air stations on the weekend.
Feb 3, 2014 at 8:12 PM
that would be good, any sports show or if you have the definitions for the properties file that would also be enough. I'm trying to see if there is anything in the properties files to indicate if it's a sports show.

2 things I'm missing right now:
1. Sports show identification
2. Recorded date/time (the file only has original aired)

Feb 3, 2014 at 9:27 PM
Okay added support you'll find it in the next build

Feb 3, 2014 at 9:30 PM
Sounds Great! I can't wait to try it!

Feb 7, 2014 at 2:26 AM

I see you added the ability to read the SageTV properties file in the early access build. I tried to convert a TV show and I get the error downloading metadata message. How do you enable this feature?
Feb 7, 2014 at 5:26 AM
nothing to enable, get the latest build and ensure the properties file is lying with the source file and has the same name with .properties extension and MCEBuddy will do the rest automatically.

Marked as answer by rboy1 on 2/7/2014 at 1:00 PM
Feb 7, 2014 at 11:21 AM
OK...looks like I have an aging issue as the .properties file does not have all of the metadata. I will test some more.

Feb 13, 2014 at 12:49 PM

So I have tested some more and set MCEBuddy to wait/age for 1 hour and it is not performing the metadata lookup. Attached is a log for a recording along with its .properties file. Can you take a look and let me know what you think?


Feb 13, 2014 at 4:46 PM
That is because your filenames don't match.

Your original file is:

MCEBuddy is expecting the properties files to be named:

Where as your properties file is:

That is why it isn't able to find it. Is that something you can configure or is it fixed?
If it's fixed I can adjust MCEBuddy to look for the other filename

Feb 13, 2014 at 4:54 PM
done it'll look for both types of names in the next build.

Feb 13, 2014 at 5:23 PM
Thanks Rboy1! To answer your question it is not something I can configure. It always appends .properties to the end of the filename. As a matter of fact after I run MCEBuddy and it creates a file with the .mp4 creates a new properties file with the This will work great...thanks for making the change.

Feb 13, 2014 at 5:27 PM
MCEBuddy generates an XML file. Properties file isnt' a standard used by many programs. However you can write a small script that runs through custom command to copy your original properties file.

Feb 14, 2014 at 8:35 PM

I tested the new build and it works perfectly! Thank You!!!

Mar 20, 2014 at 1:26 PM

I decided to turn MCEBuddy loose on my entire SageTV recording directory. Most of the files are able to read the SageTV file however a bunch of them give me the unable to download metadata. Below are the file and the MCEBuddy log for the recording. Can you take a look and see why this was unable to download the metadata. Thanks - Dan.
Mar 20, 2014 at 1:50 PM
There is a difference between downloading metadata and extracting metadata. If the error is cannot download then it isn't able to find the metadata in the Internet based on what it extracted from the properties file. That is not an error just that the info doesn't exist on any website.

Mar 20, 2014 at 2:40 PM

I copied the important lines from the log file that I attached. To me it looks like it is unable to extract the metadata....Marker not found???? In my above post I included a link to the file.

2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Extracting SageTV meta data
INFORMATION> 2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Extracting Generic Tags
WARNING> 2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Unable to extract meta data from file \TOWER\SageTV\Survivor-S28E04-OddOneOut-6317701-0.mpg. Marker not found
WARNING> 2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> No recording meta data can be extracted, using Title extracted from file name. If you are running MCEBuddy on a Windows Server, this is normal as the Media Center filters are not available on that platfom.
2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Extracted Showname from Title -> Survivor-S28E04-OddOneOut-6317701-0
2014-03-20T06:32:26 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted ->
Apr 1, 2014 at 12:16 PM
That's because your properties file is using a different format it doesn't have the tag Title instead it uses MediaTitle. I'll add support for the new tag in the next build.