- Service API Changes**: The service (Discovery+) may have updated its API to provide license URLs dynamically rather than using a single endpoint, necessitating the `lic_url` parameter and return value changes.
- Token Validation Issues**: Users may have encountered issues with invalid tokens that still passed V3’s loose validation (`is not None`), prompting the stricter `len(get_channels(token)) == 0` check.
- Error Handling Complaints**: Implicit `None` returns in `get_single` could have caused bugs or crashes in calling code, leading to the explicit `None, None, None` return for consistency.
- Flexibility for Future Updates**: By making the license URL dynamic, V4 is better positioned to handle future changes in the service’s DRM infrastructure without requiring code modifications.
Friday, April 11, 2025