I'm really sorry, I probably should have explained better. That's my fault.
The url query string args "dynamic" and "param" were for ADBTuner's use. You did far more work than I was asking for.
All I was looking for was to have the "deeplink_url" added to the response from http://<host>:8094/whatson/6. However, if you would prefer that we request that by including a specific parameter I can understand that.
For reference, I was thinking that ADBTuner would just do something like the following. If "dynamic" and "param" are included in the query string then ADBTuner would strip those parameters from the URL and then query the ESPN4CC4C endpoint. ADBTuner would use the value of the "param" argument to find the value in the returned JSON.
ESPN4CC would only see http://<host>:8094/whatson/6 in the request.
if {"dynamic", "param"} <= set(query_params):
clean_url = url_query_cleaner(tuning_url, ["dynamic", "param"], remove=True)
url_data = httpx.get(clean_url, timeout=5).json()
if url_data:
dynamic_url = url_data.get(query_params["param"][0], None)
if dynamic_url:
tuning_url = dynamic_url
Edit: This is just one parameter ("dynamic_url_json_key") in ADBTuner now.
If you want, I could submit a pull request, I had just figured it was a one-liner so I didn't bother. Thanks again.