Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixtures #3

Open
fmandal opened this issue Nov 18, 2016 · 4 comments
Open

Fixtures #3

fmandal opened this issue Nov 18, 2016 · 4 comments
Projects

Comments

@fmandal
Copy link

fmandal commented Nov 18, 2016

Would it be possible to add X next fixtures for the highlighted teams?

@fmandal
Copy link
Author

fmandal commented Nov 18, 2016

As far as I can see from the code, the way to do this is first to figure out the team ID of the highlighted team, as I understand today it's a mere text recognition. That means parsing http:https://api.football-data.org/v1/competitions/{leagueID}/teams, an operation that should only need to be done once pr. season. Doing it once pr. month is more than enough to cover all needs, I guess, or perhaps even just do it at launch.

Then we'd need to parse http:https://api.football-data.org/v1/teams/{teamID}/fixtures. Theres an option here to add timeFrame=nX, where X is the number of days ahead to look. So getting a fail proof pull of the next X games, as I suggested, will not be straight forward, but it can be replaced with specifying the number of days ahead to look instead and then limiting the max number of instances to show.

Now, I'd love to do this myself, but I'm afraid my coding skills aren't up to it...

@fewieden
Copy link
Owner

fork the repository, if you get in trouble give me a note and i will look what you have come up with so far

@fewieden
Copy link
Owner

Hey Fredrik, did you try to implement those features yet?

@fmandal
Copy link
Author

fmandal commented Jan 23, 2017

Sorry, I haven't gotten around to doing this yet. Not sure I ever will...

@fewieden fewieden added this to To Do in v2 Apr 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
v2
To Do
Development

No branches or pull requests

2 participants