Site
Home / Forum / 3rd Party Projects / [Plex Add-on] Sports Scraper

[Plex Add-on] Sports Scraper


Posted: 26 Jan 2017 22:11

zag
Posts: 1,558
Joined: Oct 2016

Scanner and Metadata Agent for Plex that uses https://www.thesportsdb.com

https://github.com/mmmmmtasty/SportScanner

Posted: 20 Nov 2019 08:01

sport123
Posts: 42
Joined: Nov 2019

Can confirm this works well.

The included instructions are good but have one error. Details below:
Issue: The instructions ask you to name the sport file using the Plex standard naming convention. this will not work
Solution: Go into TheSportsDB, navigate to the sporting event your file corresponds to, and finally scroll to the bottom, copy one of the list of approved filenames and rename your file using this copied filename. Plex will then recognise the file as a sports video file and scrape the data from TheSportsDB and render is correctly in your library.

When you point Plex to your sport directory. Make sure your subfolders are the names of the sports as they appear in TheSportsDB. Then the next subdirectory must be the seasons as named within TheSportDB also. E.g. "C.../Sport/Pro Motocross/Season 2019/"

Posted: 20 Nov 2019 10:32

zag
Posts: 1,558
Joined: Oct 2016

Can confirm this works well.

The included instructions are good but have one error. Details below:
Issue: The instructions ask you to name the sport file using the Plex standard naming convention. this will not work
Solution: Go into TheSportsDB, navigate to the sporting event your file corresponds to, and finally scroll to the bottom, copy one of the list of approved filenames and rename your file using this copied filename. Plex will then recognise the file as a sports video file and scrape the data from TheSportsDB and render is correctly in your library.

When you point Plex to your sport directory. Make sure your subfolders are the names of the sports as they appear in TheSportsDB. Then the next subdirectory must be the seasons as named within TheSportDB also. E.g. "C.../Sport/Pro Motocross/Season 2019/"


Thats really good to know, mmmmmtasty was an active remember here at the very start but havent seen him in a while.

Good to know the plugin works and hopefully it drives people to come here and enter data and artwork

Posted: 20 Nov 2019 10:35

zag
Posts: 1,558
Joined: Oct 2016

Could you post a screenshot of plex with this working? I'm interested in how it looks.

Posted: 21 Nov 2019 05:59

sport123
Posts: 42
Joined: Nov 2019

mmmmmtasty has done a great job. His github repo says he isn't maintaining the project actively anymore but will from time to time check submitted bugs.

I haven't gone through my library of sport completely to name everything as per the naming for each event as per each event in TheSportDB but got the proof of concept going. See attachments.

I also have a suggestion for future functionality of sportdb to support this mod. What would help is if forum contributors could add other filenames to the events on top of the auto-generated ones. Where this might come in handy is if the user has, for example, included round numbers in their file names e.g. NFL.Season 2019.Rd15.x.team.vs.y.team. SportScraper seems to only accept what is in the sportdb filenames so if mmmmmtasy isnt developing anymore this isn't a bad fix to get working longer term.

Posted: 21 Nov 2019 09:51

zag
Posts: 1,558
Joined: Oct 2016

I also have a suggestion for future functionality of sportdb to support this mod. What would help is if forum contributors could add other filenames to the events on top of the auto-generated ones. Where this might come in handy is if the user has, for example, included round numbers in their file names e.g. NFL.Season 2019.Rd15.x.team.vs.y.team. SportScraper seems to only accept what is in the sportdb filenames so if mmmmmtasy isnt developing anymore this isn't a bad fix to get working longer term.

Yes I had thought about this before as well, and think its a great idea!

At the moment all filenames are created using a standard template but I know everyone has a different ideas

I will add it to the todo list.

Posted: 26 Jan 2020 01:36

dlane2155
Posts: 11
Joined: Jun 2019

Thought I would add to this, as this Plex add-on is actually how I found out about SportsDB. I was a little disappointed when I got here to find that there was basically nothing setup for NCAA Football; however I think I helped with that pretty well, haha.

One thing that would be cool is an automatic poster and thumbnail generator. I did some of these in a crude way. Actually using a retro video game rom scraper that scrapes multiple images from a french website and then resizes, orients, and layers them all into a single image based on an xml file. Problem is my method is a little bit manual and I have to change my xml files for each game.

As an example... I tried to emulate what ESPN shows on their apps... Basically there is an image for sport (football field in this case). A color is applied for each team and given some transparency, then the shape is screwed. Logos are applied basically in the center of each side, and finally an image of the channel the game originally aired on is applied to the bottom right.


The Plex add-on does not use the "Poster" image from this db at all for events, only the "Thumb" image. It does use the "Poster" image from the League for the "TV Show" poster and as the poster for each season (that makes sense as there is no individual season poster on this site).

No other images from this site are used by the Plex add-on.

P.S. NCAA Division 1 (Football) should probably be listed next to NFL in the Featured section. It brings in just as much if not more revenue annually. It's definitely more popular than CFL, AFL, or any of the others there.

Posted: 26 Jan 2020 21:38

zag
Posts: 1,558
Joined: Oct 2016

P.S. NCAA Division 1 (Football) should probably be listed next to NFL in the Featured section. It brings in just as much if not more revenue annually. It's definitely more popular than CFL, AFL, or any of the others there.

Done !

Some teams still need descriptions and stadium names

Posted: 26 Feb 2020 22:17

snowlucas
Posts: 1
Joined: Feb 2020



Yes I had thought about this before as well, and think its a great idea!

At the moment all filenames are created using a standard template but I know everyone has a different ideas

I will add it to the todo list.



Just to add to this request. The scanner works but is very particular about naming in some ways. For example if you have a file that start EPL rather than English Premier League it will not match. More frustrating is when it doesn't match because it uses the full team name "Manchester United" and not "Man United" for example. All stems of course from no agreed naming method for sports.

I guess there are three solutions. You could try and have all the naming schemes added here (seems endless). The scanner could be updated to be more flexible. Or finally scripts to rename the files correctly. I'm going to try the scripts idea as I have no control over the first two.

Posted: 27 Feb 2020 08:39

zag
Posts: 1,558
Joined: Oct 2016




Just to add to this request. The scanner works but is very particular about naming in some ways. For example if you have a file that start EPL rather than English Premier League it will not match. More frustrating is when it doesn't match because it uses the full team name "Manchester United" and not "Man United" for example. All stems of course from no agreed naming method for sports.

I guess there are three solutions. You could try and have all the naming schemes added here (seems endless). The scanner could be updated to be more flexible. Or finally scripts to rename the files correctly. I'm going to try the scripts idea as I have no control over the first two.


Our database does have alternative naming so if the API if used to its full potential then Manchester United should work.

I could probably do the same for leagues as well as I know the scene shortens things like EPL in their releases.

Posted: 25 Jun 2020 09:49
Retrorat1
Posts: 1
Joined: 2020-06-25

Hi is this still working ? I know that the development has stopped for the SportsScanner but it still loads in plex I just cant make it to pick up the EPL listings.
I have my folder structure as follows
Root/Sports/EPL/English Premier League/Season 1920/EPL.2020.02.05.XXX.vsXXX.720p.XXX.XXX
Added the SportScanner.py to the EPL folder and the bundle in Plex plugins folder
created a tv show folder and directed it to the EPL as I only wanted the footy
in the Advance tab & selected sports scanner as the Agent it loads and scans in the media It picks up the main poster but I cannot get around the name to display only - English Premier League episode 06.22.2020 shows as the name.
Any help will be grateful
Thanks

Posted: 09 Aug 2020 21:24
zeroflix
Posts: 4
Joined: 2020-08-09

should close this i've tried and it doesn't work anymore




Who is Online?

In total there are 68 users online :: 3 registered, 0 hidden and 65 guests (based on users active over the past 5 minutes) Most users ever online was 424 on Fri Nov 10, 2017 9:02 pm

About Us

Discussion forum for TheSportsDB.com site and related topics

Rules

- Be Polite
- Respect other users
- Always post log files with issues
- Try to be helpful
- No Piracy discussion

Showing 0 to 12 (Total: 12)