mmmmmtasty / SportScanner

Scanner and Metadata Agent for Plex that uses sportdb
106 stars 31 forks source link

Case Sensitive Causing No Results #48

Open BradFMJ opened 1 week ago

BradFMJ commented 1 week ago

When this plugin calls all_leagues.php it gets back NFL.

I have a folder names NFL. However, for whatever reason in init.py NFL is coming in as Nfl and not matching against NFL.

Pretty frustrating as I was just setting up this plugin and spent probably an hour trying to figure out why a library scan was doing nothing. I only had 1 sport, NFL and 1 game to scan.

It came in now by doing a case insensitive comparison to the list of leagues that come back from thesportsdb. Nothing else is coming in though, not even the file details. I suspect there is a an issue matching NFL to Nfl someplace else in code as well.

mmmmmtasty commented 1 week ago

Could you share the file name and folder structure that you’re attempting to match?

On Fri, Sep 6, 2024 at 20:54 Brad Johnson @.***> wrote:

When this plugin calls all_leagues.php it gets back NFL.

I have a folder names NFL. However, for whatever reason in init.py NFL is coming in as Nfl and not matching against NFL.

Pretty frustrating as I was just setting up this plugin and spent probably an hour trying to figure out why a library scan was doing nothing. I only had 1 sport, NFL and 1 game to scan.

It came in now by doing a case insensitive comparison to the list of leagues that come back from thesportsdb. Nothing else is coming in though, not even the file details. I suspect there is a an issue matching NFL to Nfl someplace else in code as well.

— Reply to this email directly, view it on GitHub https://github.com/mmmmmtasty/SportScanner/issues/48, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADLV6TXGWETYGSQD5XDV7RTZVJFFBAVCNFSM6AAAAABNZQPO32VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYTCMZVGUZDQMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>