Trying to run this script today, get_build_url produced no text, predictably causing download_latest_lineageos_build to fail. The problem seems to be that pages on download.lineageos.org have been refactored to use client-side javascript more extensively, no longer including download URLs directly in the page source.
I changed get_build_url to rely on the (hopefully less prone to breakage) API; changes are below. Note this will add a dependency on the jq JSON parser.
I replaced the code for get_build_url() and get_device_downloads_page() with the following:
Trying to run this script today,
get_build_url
produced no text, predictably causingdownload_latest_lineageos_build
to fail. The problem seems to be that pages on download.lineageos.org have been refactored to use client-side javascript more extensively, no longer including download URLs directly in the page source.I changed
get_build_url
to rely on the (hopefully less prone to breakage) API; changes are below. Note this will add a dependency on thejq
JSON parser.I replaced the code for
get_build_url()
andget_device_downloads_page()
with the following: