2024-01-27, 21:31
(2024-01-27, 08:56)Södy Wrote: The link above isn't working.
I updated my game.py lines 48-51 into the following:
Code:
if broadcast == "AWAY":
self.away_id = str(item["id"])
else:
self.home_id = str(item["id"])
Is there a downside to this? This should basically only play "AWAY" streams as away streams and everything else as a home stream, if I understand it correctly. If this is correct, I would make a PR.
You'll miss another streams. There are games with more streams, i.e. four of them. Away, Home, French, CBC for one of today's games. Try my version, it should list all streams regardless of what is in broadcast element. Erack's implementation would work previous seasons where there probably weren't streams identified by only what he is checking in code.
T.