this post was submitted on 22 Sep 2024
9 points (100.0% liked)

Gunners

1511 readers
7 users here now

Victoria Concordia Crescit

We are a community for supporters of the North London-based football club Arsenal F.C.

Sister Community: https://lemmy.world/c/arsenalwfc

Join our FPL with League Code: tt2t8e

If old posts remain pinned on other instances, comment on the Daily Discussion with a screenshot!

Transfer Reliability Guide

founded 1 year ago
MODERATORS
 

Use this thread for general daily football discussion.

This thread can also be used to discuss Transfer rumours and to post Tier 4 sources.

you are viewing a single comment's thread
view the rest of the comments
[–] Astrealix@lemmy.world 1 points 1 month ago (3 children)

@UndercoverUlrikHD@programming.dev would this be possible? Thanks.

[–] UndercoverUlrikHD@programming.dev 4 points 1 month ago (1 children)

That's some uncanny timing. I was just opening the espn site to look if there are any attributes separating women's class from the open class. If it's possible, I'll add it in.

[–] Astrealix@lemmy.world 2 points 1 month ago (2 children)

Lovely! Maybe base it by checking the manager, if that's possible? I know that would probably have to be hardcoded though.

There's no direct attributes the tells whether a game is for the women's competition or not unfortunately. Checking based on managers would be too much maintenance considering there are hundreds of teams to keep track of.

I'll probably just implement a check for the league name, though that isn't completely free of future maintenance either.

[–] UndercoverUlrikHD@programming.dev 2 points 1 month ago (1 children)

These are the women's competitions that ESPN currently supports and that I've added.

The detection for women's football comes with a slight change in behaviour. If you want to add a football game from the women, you now need to add the tag -w to the game request. Likewise to remove a game from the queue you also need to add the tag -w. Where you place the tag doesn't matter as long as it's after the main commands -football, -remove -football. Please note that there's no space between "-" and "w".

E.g. -football -w gunners@lemmy.world arsenal - manchester city

or

-remove -football gunners@lemmy.world arsenal - manchester city -w

[–] Astrealix@lemmy.world 3 points 1 month ago

Oh and would it also be possible to hide the game score in the title? Don't wanna be a spoiler.

[–] Astrealix@lemmy.world 1 points 1 month ago

I'm assuming it needs to be done by code given the title gets updated by the bot.