Jump to content

thesportsdb.org metadata connection


Recommended Posts

I have a couple of media folders holding football and basketball games I've recorded.  I recently came accross a metadata website for sports called http://thesportsdb.com.

 

Would it be possible to add a field like the other metadata fields to pull information from that site to fill in fanart, description, dates, etc.?  Ii'm not sure if it would require a new media "type" folder called sports, similar to tv and movies. 

 

I've linked a couple pages, the first is the API for returning information from the db.

 

http://www.thesportsdb.com/forum/viewtopic.php?f=6&t=5

 

The second is example json (I believe) data

 

http://www.thesportsdb.com/api/v1/json/1/searchteams.php?t=Cleveland%20Indians

  • Like 7
Link to post
Share on other sites
  • 1 month later...
  • 2 years later...

I know this is an old request but can't seem to find an option in emby or the plugins for it, so i'm wondering did it ever get implemented or is this still under consideration? Or did i totally miss it?

Edited by jerren
Link to post
Share on other sites
jachin99

I second this. The sportsdb developer is doing quite a bit of work to stand this up. Some Kodi add-ons that utilize it have come and gone but there hasen't been anyone who has ran with it.

Edited by jachin99
Link to post
Share on other sites

First we need to establish the folder structure for a sports library. is it more similar to movies or tv?

Link to post
Share on other sites
Deathsquirrel

First we need to establish the folder structure for a sports library. is it more similar to movies or tv?

 

The vast majority of sports are season-based so TV-like would make more sense assuming the source metadata supports that.

Link to post
Share on other sites
jachin99

I'm actually asking docwra (Thesportdb.com developer) about this kind of thing right now on the Kodi forums.  Here is some of what he has told me about the site. 

 

"Just do a search for his Add-ons as the youtube and RSS features of them can get you exactly what you want.

For instance I used to look up my teams news, league status and youtube clips. I haven't looked at it in a while though as was too busy adding the actually sports metadata on the website which has advanced hugely in the last year or so in terms of content...

 

Links
script.screensaver.football.panel - Football/Soccer livescores and news
script.matchcenter - Football/Soccer livescores and news
script.module.thesportsdb - thesportsdb.com Kodi module (used to build other Add-ons)
metadata.thesportsdb.com - A local media sports scraper for Kodi (imports as TVShows)
script.sportscenter - A Kodi browser for thesportsdb website and its metadta (currently broken as it relied on older versions of Kodi's default theme)

Other options
service.bbclivefootballscores - Live football scores from the BBC website
plugin.program.fixtures - Sports fixtures from getyourfixtures.com

 

I don't know exactly what he has but I can be a go between if you need someone to do a little work to make this happen.  It sounds like the site is getting a lot of content but docwra needs people to maintain plugins that take advantage of thesportsdb.  A few kodi addons have popped up here and there but none are maintained. 

 

I know the scripts are most likely python, and Emby is .net core but the content from the site should be consumable by just about anything if I'm not mistaken. 

Edited by jachin99
Link to post
Share on other sites

First we need to establish the folder structure for a sports library. is it more similar to movies or tv?

 

Thanks for the headsup about this thread, always willing to help if there is any motivation to build features from anyone  ;)

 

In terms of naming and structure, I thought a lot about this already and the site should help a lot as it has a hierarchy of "leagues",  "seasons" and "events" 

 

A typical event filename structure can be like this:

<League>/<Season>/<League_Name>_<YYYYMMDD>_<Event_Name>.<ext>

And can be looked up via all sorts of API searches, such as:

 

Search for event by event name and season

https://www.thesportsdb.com/api/v1/json/1/searchevents.php?e=Italian_Grand_Prix&s=2017
https://www.thesportsdb.com/api/v1/json/1/searchevents.php?e=Arsenal_vs_Chelsea&s=1617
https://www.thesportsdb.com/api/v1/json/1/searchevents.php?e=Vancouver_Canucks_@_Los_Angeles_Kings&s=1617
or
 
Search for event by full event name and date
 
https://www.thesportsdb.com/api/v1/json/1/searchevents.php?e=Vancouver_Canucks_@_Los_Angeles_Kings&d=2017-09-16
 
or 
 
Search for event by event file name

https://www.thesportsdb.com/api/v1/json/1/searchfilename.php?e=Formula_1_2017-09-03_Italian_Grand_Prix
Edited by zag
Link to post
Share on other sites

So it's basically a tv structure where leagues is equivalent to tv series and events are equivalent to episodes?

Link to post
Share on other sites

Is it basically a tv structure where leagues is equivalent to tv series and events are equivalent to episodes?

Link to post
Share on other sites
Sizzlebox

Is it basically a tv structure where leagues is equivalent to tv series and events are equivalent to episodes?

That’s my understanding— and logical to me, and how I implement it (with metadata entered manually).

 

 

Sent from my iPhone using Tapatalk

Link to post
Share on other sites

Actually what I forgot to mention is there is also the concept of "rounds" so for example motor-racing has round 1,2,3,4,5 etc in season "2018".

 

Thats how the Kodi scraper worked.

 

Its a bit of a square peg in a round hole, but it did work.

Link to post
Share on other sites
cayars

Man I would love this beyond belief.  I for example have every NFL game back from 2012 to present plus just about every Super Bowl.  I've got similar for other sports as well.

Link to post
Share on other sites

This is an example library that the Kodi scraper guy used

 

Personally I have my mine in this kind of format:

 

C:/Motorsport/MotoGP/2018/MotoGP.2018-03-18.Grand.Prix.of.Qatar.mkv

C:/Motorsport/MotoGP/2018/MotoGP.2018-07-01.Motul.TT.Assen.mkv

C:/Motorsport/Formula E/1718/Formula.E.2018-03-03.Mexico.City.ePrix.mkv

C:/Motorsport/Formula E/1718/Formula.E.2018-04-28.Paris.ePrix.mkv
 
Basically exactly the same as the website is setup ;)
Edited by zag
Link to post
Share on other sites
Sizzlebox

My UFC is very simple—

UFC-> UFC 100.mkv or UFC 150 ABC vs XYZ.mp4

 

Other sports with seasons will of course have at least one additional folder later. (Sport->Season->match/game)

 

 

Sent from my iPhone using Tapatalk

Link to post
Share on other sites

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...