Jump to content


Photo

thesportsdb.org metadata connection

www.thesportsdb.com metadata sports

  • Please log in to reply
44 replies to this topic

#1 jrhessey OFFLINE  

jrhessey

    Advanced Member

  • Members
  • 50 posts
  • Local time: 12:57 PM

Posted 25 January 2016 - 02:53 PM

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.thesports...pic.php?f=6&t=5

 

The second is example json (I believe) data

 

http://www.thesports...eveland Indians


  • SikSlayer, cayars, Baenwort and 4 others like this

#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156918 posts
  • Local time: 12:57 PM

Posted 25 January 2016 - 03:07 PM

yes that's very interesting. didn't know about that. we'll have to look into it when we have a chance



#3 spootdev OFFLINE  

spootdev

    Advanced Member

  • Members
  • 166 posts
  • Local time: 10:57 AM

Posted 25 January 2016 - 05:05 PM

Cool, thanks for pointing this out.....I'll have to add into my app.



#4 gurgle OFFLINE  

gurgle

    Newbie

  • Members
  • 2 posts
  • Local time: 04:57 AM

Posted 07 March 2016 - 07:52 AM

FYI over in the Kodi forums they have a scraper up and running using thesportsdb. Would be great to see this in emby!

 

Thanks. 



#5 jerren OFFLINE  

jerren

    Advanced Member

  • Members
  • 84 posts
  • Local time: 06:57 PM

Posted 07 March 2018 - 01:26 PM

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, 07 March 2018 - 01:28 PM.


#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156918 posts
  • Local time: 12:57 PM

Posted 07 March 2018 - 01:37 PM

It is still something we'd like to do.

#7 jachin99 OFFLINE  

jachin99

    Advanced Member

  • Members
  • 815 posts
  • Local time: 12:57 PM

Posted 08 March 2018 - 03:28 PM

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, 08 March 2018 - 03:29 PM.


#8 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156918 posts
  • Local time: 12:57 PM

Posted 08 March 2018 - 04:17 PM

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



#9 Deathsquirrel OFFLINE  

Deathsquirrel

    Advanced Member

  • Members
  • 2136 posts
  • Local time: 09:57 AM

Posted 08 March 2018 - 04:37 PM

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.



#10 jachin99 OFFLINE  

jachin99

    Advanced Member

  • Members
  • 815 posts
  • Local time: 12:57 PM

Posted 08 March 2018 - 10:18 PM

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, 08 March 2018 - 10:19 PM.


#11 zag OFFLINE  

zag

    Newbie

  • Members
  • 8 posts

Posted 09 March 2018 - 06:02 AM



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, 09 March 2018 - 06:17 AM.


#12 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156918 posts
  • Local time: 12:57 PM

Posted 09 March 2018 - 12:07 PM

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



#13 jachin99 OFFLINE  

jachin99

    Advanced Member

  • Members
  • 815 posts
  • Local time: 12:57 PM

Posted 10 March 2018 - 12:30 PM

Some screenshots from the MediaPortal plugin:

https://forum.team-m...ea...in.131737/

306714_19-47-38.png
306713_19-47-00.png
306724_19-46-19.png
306715_19-48-44.png



#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156918 posts
  • Local time: 12:57 PM

Posted 10 March 2018 - 12:30 PM

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



#15 jachin99 OFFLINE  

jachin99

    Advanced Member

  • Members
  • 815 posts
  • Local time: 12:57 PM

Posted 10 March 2018 - 01:00 PM

I asked the same question in the Kodi thread so hopefully he sees it pretty soon

#16 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156918 posts
  • Local time: 12:57 PM

Posted 10 March 2018 - 03:05 PM

Ok. If yes then that would make things much easier.

#17 Sizzlebox OFFLINE  

Sizzlebox

    Advanced Member

  • Members
  • 70 posts
  • Local time: 11:57 AM

Posted 10 March 2018 - 06:33 PM

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

#18 zag OFFLINE  

zag

    Newbie

  • Members
  • 8 posts

Posted 11 March 2018 - 09:09 AM

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.



#19 cayars OFFLINE  

cayars

    Advanced Member

  • Alpha Testers
  • 3385 posts
  • Local time: 12:57 PM

Posted 16 March 2018 - 01:36 PM

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.



#20 jachin99 OFFLINE  

jachin99

    Advanced Member

  • Members
  • 815 posts
  • Local time: 12:57 PM

Posted 17 March 2018 - 11:37 PM

@Luke are you still waiting on a solid yes or no before you attempt to implement this or will you need more?





Also tagged with one or more of these keywords: www.thesportsdb.com, metadata, sports

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users