architv/soccer-cli

Upcoming feature with league

Closed this issue · 5 comments

First of all. Great project, I really like it.

I do not know whether this is an issue or a feature request. I did not manage to get the upcoming feature to work with a league and not just a specific team.

soccer --league=BL --time=7 --upcoming
No BL matches in the past week.

In the help it says "Displays upcoming games when used with --time command.", but a potential restriction to a specific team is not mentioned.

Best,
Florian

I think soccer --team=PSG --time=7 --upcoming does what you want to?!

Yes, soccer --team=XY --upcoming does show me the upcoming events for team XY. What I would appreciate to have is to see all upcoming games for a certain league, not just a single team. E.g. print all premier league games in the next 7 days. Sorry, If this did not become clear previously.

Well :-) Then the upper command is what you want to go with. When you fired the command, apparently there were no games in the next 7 days and the error message is misleading (should say 'specified date range' or something).
Currently next games in most leagues start in about two weeks because of the international games, so be sure to take --time=20 or the like.

I think this is not the problem. When I first tried it with "Bundesliga" there were games scheduled for the next weekend. Now, the next Bundesliga-match is on March 31st, so in 10 days.
Still calling with time=20 or event time=100 does not print these:

soccer --league=BL --time=100 --upcoming
No BL matches in the past week.

Sorry, cannot reproduce. Working perfectly here, so it's an issue with your instance.

`dfrt@raspberrypi:~ $ soccer --league=BL --time=12 --upcoming
============================= BL =============================

Hertha BSC - vs - TSG 1899 Hoffenheim Fri 31, 19:30
Red Bull Leipzig - vs - SV Darmstadt 98 Sat 01, 14:30
FC Schalke 04 - vs - Borussia Dortmund Sat 01, 14:30
Hamburger SV - vs - 1. FC Köln Sat 01, 14:30
SC Freiburg - vs - Werder Bremen Sat 01, 14:30
FC Bayern München - vs - FC Augsburg Sat 01, 14:30
Eintracht Frankfurt - vs - Bor. Mönchengladbach Sat 01, 17:30
dfrt@raspberrypi:~ $`