Page 1 of 1

Missing Player Pictures

Posted: Sun Mar 31, 2019 12:52 pm
by t00nces
Greetings,

We're using the latest version of the sim and outputting files to the SQLite DB. Bruno Roy shared his website code with us and one of the nice things is the NHLID that Simon has included in the sim. However, if a player doesn't have an NHLID, their picture doesn't show (of course). Is there a table in the DB that can be edited to point to another location to get a picture or a way to post custom pictures for specific players?

Regards,

t.

Re: Missing Player Pictures

Posted: Mon Apr 01, 2019 7:41 am
by SimonT
You can't edit table in the DB because it erase and recreate every day. You can import NHLID using the Bonus option. And you can find in the NHLID here

Here:
http://sths.simont.info/Download_En.php

Select:
Rating Files 2018: All rating files available submit to me in 2018.

In this path, open Showtime Ratings Pack -> NHLID.csv

Re: Missing Player Pictures

Posted: Sun May 19, 2019 10:20 am
by t00nces
Are you taking feature requests? If so, it would be great if there was a feature that allowed you to use custom pictures and bios for certain players. For example, in our league the GM's are allowed to create a player for themselves. Sometimes, prospects and some European players don't have an NHL ID so it would be useful to be able to host your own DB of that info for those specific players.

Is that something that can reasonably be done or is it too much work for a niche feature?

Regards,

t.

Re: Missing Player Pictures

Posted: Mon May 20, 2019 1:45 pm
by SimonT
Hi.

The NHL ID is only used for the picture at the moment. If you want to host some the picture yourself, I can take this feature request. Some of my customer paid me for special request at the condition I can offer it to everyone at the same time.

Re: Missing Player Pictures

Posted: Mon Jan 29, 2024 4:18 pm
by gingerkk
Is there a reason that some of the player pictures aren't shown but instead just their name appears where the picture should be? This happens with players too, that have their NHL ID in the sim and that have their picture on their NHL page.

Re: Missing Player Pictures

Posted: Mon Jan 29, 2024 6:16 pm
by SimonT
gingerkk wrote: Mon Jan 29, 2024 4:18 pm Is there a reason that some of the player pictures aren't shown but instead just their name appears where the picture should be? This happens with players too, that have their NHL ID in the sim and that have their picture on their NHL page.
Do you have an screenshot of this behavior? The only reason I see is "lazy loading" in the web browser.

Re: Missing Player Pictures

Posted: Thu Feb 01, 2024 2:26 pm
by gingerkk
One example would be Mitchell Chaffee:

https://slnf.sths.ca/PlayerReport.php?Player=2333

We have his NHL ID in the sim, and there is a picture of him on his NHL site:

https://www.nhl.com/lightning/player/mi ... ee-8482070

Players without NHL ID in the Sim look different, there's nothing instead of the name written twice:

https://slnf.sths.ca/PlayerReport.php?Player=745

Re: Missing Player Pictures

Posted: Thu Feb 01, 2024 7:54 pm
by SimonT
gingerkk wrote: Thu Feb 01, 2024 2:26 pm there's nothing instead of the name written twice:
I don't understand what you mean by name written twice. I don't see this on the website.

Re: Missing Player Pictures

Posted: Sat Feb 03, 2024 6:01 am
by gingerkk
This is what I see on all devices. On the right side the name of the player again, instead of the picture.

Image

Re: Missing Player Pictures

Posted: Sun Feb 04, 2024 9:26 am
by SimonT
There is no image for Mitchell Chafee on the NHL website in the 168 by 168 mugshot image. So, you see the alternatif text for the image.

And it seems the NHL website change how they handle mugshot now.

Re: Missing Player Pictures

Posted: Mon Feb 05, 2024 8:05 am
by gingerkk
Ok, thanks. So I guess there is no way to "circumvent" this somehow via the Sim

Re: Missing Player Pictures

Posted: Mon Feb 05, 2024 6:13 pm
by SimonT
I need to analyse this change from NHL. But when I look at another rookie (Connor Bedard), the 168 by 168 mugshot exist so I wonder if it's one shot deal for this player.

Re: Missing Player Pictures

Posted: Thu Feb 08, 2024 6:01 pm
by gingerkk
There are some more, but mostly "lesser known" players like this one here:

https://slnf.sths.ca/PlayerReport.php?Player=282

https://www.nhl.com/flames/player/yan-kuznetsov-8482165

Re: Missing Player Pictures

Posted: Fri Feb 09, 2024 9:06 am
by JimToupet
Maybe they are in steps for hardening from where does images can be fetch.

Re: Missing Player Pictures

Posted: Fri Feb 09, 2024 1:27 pm
by SimonT
Actually, the STHS is compatible with NHL change.

I have setup the
Mug Shot Base URL to be "https://assets.nhle.com/mugs/nhl/20232024/"
Mug Shot File Extension to be "png"
A players NHL ID to be "CGY/8482165" and it work.

What is annoying is that the 1) URL will change every year and 2) if the player get trade, his mugshot NHLID might change also. (To confirm)

Let see if this thrend from NHL.com continue or not.