Closed juntuu closed 2 years ago
Thanks for posting this. I didn't realise that the old API was that easy to replace. I don't necessarily want to get back to the old code structure but I could at least replace the HTML parsing in extract_season_number()
with the programs API cal to make it more robust.
Hi,
Regarding the removal of old areena apis in https://github.com/aajanki/yle-dl/commit/5f3b6246213b76fb0af60eef96caabbb5141d615
I don't know much about the old api's schema, but with some cursory testing it would seem that /v3/schema/{schema_version}/items/{id} could be a pretty reasonable replacement for the old api.
Reverting the mentioned commit and changing the api endpoint seems to "just work". As said, I don't know the old schema, but it was able to produce at least the old default title format with series title, season and episode numbers.
Ps. I noticed there was a new release :tada: as I was writing this, but seeing the TODO in
extract_season_number()
I think this could still be relevant.