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

[Plex Add-on] Sports Scraper


Posted: 17 Jan 2023 10:39

zag


Posts: 3,754
Joined: 2020

Site should be fast again now after I changed the free API key again to stop abuse. Let me know if it makes a difference.

transparent spacer
Posted: 20 Jan 2023 07:42
Retrorat1


Posts: 34
Joined: 2020

Site should be fast again now after I changed the free API key again to stop abuse. Let me know if it makes a difference.
Yes that worked m8.

zag
transparent spacer
Posted: 23 Jan 2023 07:43
Retrorat1


Posts: 34
Joined: 2020

Site should be fast again now after I changed the free API key again to stop abuse. Let me know if it makes a difference.
Has something changed again? Its stopped pulling data again from yesterday. 22-01-23/
Thanks

transparent spacer
Posted: 04 Feb 2023 18:48
ntorres2847


Posts: 4
Joined: 2022

Does anyone have any clue why in my Plex, the 2021-22 season of English Premier League matches has the matches that were played in 2021 with Episode numbers while the 2022 matches have listed dates?

For example, /Sports/Football/English Premier League/Season 2122/English.Premier.League.2021-10-18.Arsenal.vs.Crystal.Palace.mp4 has a listed Episode number like this:

Episode 2110188806

while /Sports/Football/English Premier League/Season 2122/English.Premier.League.2022-01-23.Arsenal.vs.Burnley.mp4 is listed with a date like this:

1/23/22

It's this way for all of the matches in this season, split by the year they were played in, and they are all out of order because of it, with the 2022 matches being listed first and the 2021 matches after them. And it's only that season, the other seasons I have are organized fine. The 2022-23 season all has listed dates but they are in order, while all previous seasons have the Episode numbers. I checked the file names for all of my matches, and they are all correct to what is stated on each match's page here on SportsDB.

Any help to get this season organized would be appreciated.

transparent spacer
Posted: 13 Feb 2023 16:23
PeterPiglet

Posts: 1
Joined: 2023

edit: Finally solved and I am so glad!

You can completely ignore "Download the latest release from https://github.com/mmmmmtasty/SportScanner/releases" that is in the readme on the github. Instead go to code -> download as zip and you will get the latest files with the obfuscated API key url thingy and metadata will get pulled !

#######################################################################################


Thank you! I was going insane, because I saw errors, which should have already been fixed. Downloading the current files helped at lot :-D

transparent spacer
Posted: 14 Mar 2023 15:36
ntorres2847


Posts: 4
Joined: 2022

I have been importing NHL content into my Plex, and the same issue is happening to my 2021-22 season content there as is happening below, with the events that took place in 2022 being listed before 2021 events. Metadata is being pulled and everything, they're just out of order.

NHL content is in a folder /Sports/NHL/Season 2122/ with all files named exactly as how this website suggests they should be. The Episode numbers are now all reading as like Episode 23110188806 instead of dates. But I cannot work out how to get them into the right order. Can anyone help me?

Does anyone have any clue why in my Plex, the 2021-22 season of English Premier League matches has the matches that were played in 2021 with Episode numbers while the 2022 matches have listed dates?

For example, /Sports/Football/English Premier League/Season 2122/English.Premier.League.2021-10-18.Arsenal.vs.Crystal.Palace.mp4 has a listed Episode number like this:

Episode 2110188806

while /Sports/Football/English Premier League/Season 2122/English.Premier.League.2022-01-23.Arsenal.vs.Burnley.mp4 is listed with a date like this:

1/23/22

It's this way for all of the matches in this season, split by the year they were played in, and they are all out of order because of it, with the 2022 matches being listed first and the 2021 matches after them. And it's only that season, the other seasons I have are organized fine. The 2022-23 season all has listed dates but they are in order, while all previous seasons have the Episode numbers. I checked the file names for all of my matches, and they are all correct to what is stated on each match's page here on SportsDB.

Any help to get this season organized would be appreciated.



transparent spacer
Posted: 11 May 2023 13:39
CatPhish

Posts: 7
Joined: 2022

In Plex, if you use the numbers in your "Sort Title," that will be how the games get sorted. You can then change the title to be anything you want it to be.

transparent spacer
Posted: 31 May 2023 05:08
ntorres2847


Posts: 4
Joined: 2022

In Plex, if you use the numbers in your "Sort Title," that will be how the games get sorted. You can then change the title to be anything you want it to be.

Thank you.

transparent spacer
Posted: 17 Jun 2023 04:28
ntorres2847


Posts: 4
Joined: 2022

In Plex, if you use the numbers in your "Sort Title," that will be how the games get sorted. You can then change the title to be anything you want it to be.

I've tried this and it's still not working. My 2021-22 seasons are still not in order. I reinstalled the plugin and now everything has an episode number like Episode 2110236963 instead of some having dates, but it's still displaying matches from 2022 ahead of matches from 2021 even though I have it set to display Oldest first. Library default doesn't change this, and Newest first puts the 2021 matches first, but reverses them so the first 2021 match is the last one before it switches to 2022.

My temporary workaround for this has been to create a collection just for that particular season so I can manually get them in order, but I'd much prefer not to have to do that. Can anyone advise on what to do?

transparent spacer
Posted: 17 Jun 2023 09:32

Ovokx

Posts: 1,817
Joined: 2020

Please join our Discord community. There's a special section for Plex users and maybe there you can get some help

transparent spacer
Posted: 03 Jul 2023 20:10
sport1234


Posts: 20
Joined: 2022

Hi, I have asked this back in January, and due to reorganizing different things, have not been able to spend time on this. Now I am ready to start re building all of my sports libraries, and this is the same issue. It seems like something changed, around the December or January time frame, and everything is real slow, or it never comes back. I have thousands of sports events, and everything was working fine up until December 2022.

Now I have looked at the log files, and trying to build a very simple league of 58 games, and tried to build this last night, and after about 10 hours, it never really finished, and I ended up stopping it.

I have looked at the log file, and I am getting the following issue when it basically hangs:

2023-07-03 22:27:21,945 (3ffb0fefab0) : INFO (agentkit:961) - Searching for matches for {'openSubtitlesHash': '1e7394a287308273', 'episode': '2208140687', 'name': 'St Truiden vs Anderlecht
2023-07-03 22:27:21,947 (3ffb0fefab0) : DEBUG (networking:143) - Requesting 'https://127.0.0.1:32400/library/metadata/135/tree'
2023-07-03 22:27:21,996 (3ffb0fefab0) : INFO (__init__:94) - SS: Attempting to match Belgian First Divison A
2023-07-03 22:27:21,997 (3ffb0fefab0) : DEBUG (networking:143) - Requesting 'https://www.thesportsdb.com/api/v1/json/8123456712556/all_leagues.php'
2023-07-03 22:27:22,309 (3ffb0fefab0) : ERROR (networking:196) - Error opening URL 'https://www.thesportsdb.com/api/v1/json/8123456712556/all_leagues.php'
2023-07-03 22:27:22,310 (3ffb0fefab0) : INFO (__init__:99) - SS: Could not retrieve shows from thesportsdb.com
2023-07-03 22:27:22,312 (3ffb0fefab0) : CRITICAL (agentkit:1018) - Exception in the search function of agent named 'SportScanner', called with keyword arguments {'openSubtitlesHash': '1e7394a287308273', 'episode': '2208140687', 'name': 'St Truiden vs Anderlecht', 'episodic': '1', 'show': 'Belgian First Divison A', 'released_at': '2022-08-14', 'season': '2223', 'plexHash': '831f9c9a4a3380c18b4176c660698f9396361345', 'filename': '%2Fshare%2FCACHEDEV1_DATA%2FSoccer%2FBelgian%20Soccer%2FBelgian%20First%20Divison%20A%2FSeason%202223%2FBelgian%2EFirst%2EDivision%2EA%2E%2E2022-08-14%2ESt%2ETruiden%2Evs%2EAnderlecht%2Emp4', 'year': '2022', 'duration': '-1', 'id': '135'} (most recent call last):
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-5070ad484/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1011, in _search
agent.search(*f_args, **f_kwargs)
File "/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/SportScanner.bundle/Contents/Code/__init__.py", line 104, in search
if potential_leagues is not None:
UnboundLocalError: local variable 'potential_leagues' referenced before assignment


It seems like it cannot find the URL of all leagues in the sportsdb. This is the standard code from the site, that I have re downloaded with no changes, to make sure that this is the code that everyone else is using.

Can someone please help? Has something changed since January, that I need to make a change to get this to work as before.

Any help, would be really appreciated.





transparent spacer
Posted: 20 Nov 2023 00:23
Rheffner02

Posts: 1
Joined: 2023

'' UnboundLocalError: local variable 'potential_leagues' referenced before assignment ''

I get this exact error after hours of troubleshooting. Glad to see I am not the only one. Would love to help solve this problem, although I am not very experienced in this programming language.

transparent spacer
Posted: 11 Jan 2024 02:20


Hi all - in the process of setting this up and wondering what I need to do with the other files in the downloaded sports.scanner?

I've followed the latest instructions and downloaded the zip from the code dropdown but wondering where the Parse-NBA.ps1 type files go?

transparent spacer
Posted: 11 Jan 2024 06:07


Hi all - just got it all up and going and now dealing with duplicates. Plex is putting certain game played on the same day as a different version. No option to split the versions like with movies.

If I change the file name around to remove this issue metadata doesn't get matched properly.

Any ideas?

Thanks for all the amazing work!

transparent spacer
Posted: 17 May 2024 20:12
CatPhish

Posts: 7
Joined: 2022

Johnny_b, you're running up against the same thing I am, with BTCC races. I select the version to watch race 1, 2 or 3 from the same day. Clunky, but it works.

transparent spacer
Posted: 07 Jun 2024 23:11
wayner

Posts: 2
Joined: 2024

I am having trouble getting this to work. I am using an API key of 3 that I have saved in the ini file.

But I am getting a 404 error when it is trying to hit the all leagues URL. Here is what I get - this is the same as someone had on the previous page but I didn't see how they fixed this. Is this an API key issue?

2024-06-07 18:15:31,269 (146f74db0b38) : INFO (__init__:94) - SS: Attempting to match NBA
2024-06-07 18:15:31,270 (146f74db0b38) : DEBUG (networking:144) - Requesting 'https://www.thesportsdb.com/api/v1/json/8123456712556/all_leagues.php'
2024-06-07 18:15:31,824 (146f74db0b38) : ERROR (networking:197) - Error opening URL 'https://www.thesportsdb.com/api/v1/json/8123456712556/all_leagues.php'

transparent spacer
Posted: 09 Jun 2024 08:08

zag


Posts: 3,754
Joined: 2020

I am having trouble getting this to work. I am using an API key of 3 that I have saved in the ini file.

But I am getting a 404 error when it is trying to hit the all leagues URL. Here is what I get - this is the same as someone had on the previous page but I didn't see how they fixed this. Is this an API key issue?

2024-06-07 18:15:31,269 (146f74db0b38) : INFO (__init__:94) - SS: Attempting to match NBA
2024-06-07 18:15:31,270 (146f74db0b38) : DEBUG (networking:144) - Requesting 'https://www.thesportsdb.com/api/v1/json/8123456712556/all_leagues.php'
2024-06-07 18:15:31,824 (146f74db0b38) : ERROR (networking:197) - Error opening URL 'https://www.thesportsdb.com/api/v1/json/8123456712556/all_leagues.php'


Doesn't the Add-on come with a API key already? I thought it did....

transparent spacer
Posted: 11 Jun 2024 21:59
wayner

Posts: 2
Joined: 2024

Maybe - where would I find the API key? You are supposed to put the API key in an ini file, but there was no ini file by default.

transparent spacer
Posted: 16 Jun 2024 17:43

zag


Posts: 3,754
Joined: 2020

Maybe - where would I find the API key? You are supposed to put the API key in an ini file, but there was no ini file by default.

Do you have the latest version? There is a lot of discussion that might be useful on our discord channel.

transparent spacer
Showing 88 to 107 (Total: 107)