Jump to content

Sports metadata -- is there a way to automate this?


Recommended Posts

flashls82
Posted

Does anyone have tips and tricks to share for the cleanest/most automated way to get Emby to pull correct metadata for live recordings of sports? I have TheSportsDB plugin installed; it correctly scrapes info for individual games but only when the filename exactly matches TheSportsDB's suggested naming exactly, which requires renaming a recording after the fact. On top of that, I haven't found a way to get Emby to match the "show" name to the relevant league in TheSportsDB (e.g. NBA, NFL), even when I rename the folder with the show to the exact name and try to hard code the correct TheSportsDB id for that league in the metadata. 

Has anyone found a way to better automate the renaming that has to happen? And what is the best-case scenario for the leagues/show names -- just manually pull stuff and lock the item (and then I guess manually move episodes over to the right folder)?

Posted

Hi, we’ll have to see what we can do with the guide data. For now I think you’re doing the right thing.

flashls82
Posted
On 7/14/2026 at 6:42 PM, Luke said:

Hi, we’ll have to see what we can do with the guide data. For now I think you’re doing the right thing.

One thing that could potentially help if there is "sports" tagging in guide data is to have sports recordings go to a separate library (which could then be configured with TheSportsDB as the primary metadata provider). But not sure what is/isn't tagged in the guide data.

  • 2 weeks later...
Posted

Yes and the guide data that we get does have the names of the teams, and i would assume the league name as well. 

I would think we could take advantage of that to name the files more like what sportsdb is expecting.

  • 2 months later...
Posted

Are wanting to record all the sport available to you or just a particular team or two?  I had an awful time getting the Denver Broncos games to correctly scrape and be organized in a sane manner.  I (and Claude) wrote a script that moves them labels them, and organizes the games into seasons instead of all being season 1.  

Here is a sanitized version of the script and instructions on how to use.  I did this on ubuntu Linux so if you were on windows it would need to be rewritten. 

The script relies on Emby's DVR filename format: "<Program> YYYY_MM_DD_HH_MM_SS - <Episode title>.ts". The date comes from the timestamp in the filename (with the file time as a fallback), and the matchup comes from the text after the last " - ".

emby-team-postprocess.sh Emby-team-postprocess-instructions.txt

  • Like 1
  • 1 month later...
Posted
On 7/28/2026 at 6:58 PM, Luke said:

Yes and the guide data that we get does have the names of the teams, and i would assume the league name as well. 

I would think we could take advantage of that to name the files more like what sportsdb is expecting.

This has just been added on the server beta channel, with the updated emby guide data plugin. The names of the league and teams are captured so that files can be named in accordance with sportsdb naming conventions.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...