These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Failed to download JSON PID info

user-2395

Can not download any radio programme. Have tried the following formats:

$ get_iplayer --pid=m0005lz2 --type=radio
$ get_iplayer https://www.bbc.co.uk/sounds/play/m0005lz2

MacOS High Sierra 10.13.6
get_iplayer 3.12-homebrew

It appears get_iplayer cannot download the correct JSON file. But trying the URL in my browser it does find it. I believe it's due to the JSON path being HTTPS rather than HTTP. `http://www.bbc.co.uk/programmes/m0005lz2.json` is a 301 redirects to `https://www.bbc.co.uk/programmes/m0005lz2.json'.

Is there a way to configure get_iplayer to download from the JSON data or handle the 301?

get_iplayer Output:


WARNING: Failed to download JSON PID info: http://www.bbc.co.uk/programmes/m0005lz2.json
WARNING: Could not determine PID type (m0005lz2). Trying to record PID directly.
Matches:
INFO: 0 matching programmes
WARNING: Could not download programme metadata from http://www.bbc.co.uk/programmes/m0005lz2.json
ERROR: Failed to get version PID metadata from iPlayer site (JSON)
WARNING: No programmes are available for this PID with version(s): default
WARNING: You have programmes over 30 days old that should be deleted.
WARNING: Find them with 'get_iplayer --history --before=720'
WARNING: or use the 'Recordings' tab in the Web PVR Manager.
WARNING: Use 'get_iplayer --purge-files' to delete all programmes over 30 days old.
WARNING: Use 'get_iplayer --prefs-add --no-purge' to suppress this warning.

log.txt

These forums are archived

See this post for further info