user-1923
26-01-2018, 03:35 PM
I'm running get_iplayer 3.12.0 from a Windows 7 command prompt.
Would you consider adding a --metadataraw option that dumps to file the JavaScript object notation (json) files that get_iplayer already retrieves when downloading? That is: the clip or episode json, the playlist json, the version json, etc. It would also be useful to include a --metadataraw-ancestors option that, in addition, dumps to file the parent, grandparent and great-grandparent jsons that get_iplayer already retrieves when downloading a programme.
Some of these data appear in the metadata xml that get_iplayer creates when the --metadata option is specified, but some of it is discarded.
Since the BBC have stated that these files may become unavailable soon, it would be useful to grab the information before it's lost—particularly for channels that consist mainly of repeats such as BBC Four, CBBC, CBeebies and BBC Radio 4 Extra. A user may not want to download a programme now, but may want to keep the data to re-consider when it is inevitably repeated. It would also prove useful in general for when a user wants to search their local download folder by actor or writer, for example. The credits are available in the version jsons, but get_iplayer currently discards these data.
The dumped files could be saved alongside the downloaded programme and could be named by appending a suitable suffix to the --file-prefix. For example, suggestions for file-prefix suffixes for a clip:
The option could also include a dump to a text file of the stream information for the download. This information is currently available through the --streaminfo option, but this has to be run separately from the download command.
Would you consider adding a --metadataraw option that dumps to file the JavaScript object notation (json) files that get_iplayer already retrieves when downloading? That is: the clip or episode json, the playlist json, the version json, etc. It would also be useful to include a --metadataraw-ancestors option that, in addition, dumps to file the parent, grandparent and great-grandparent jsons that get_iplayer already retrieves when downloading a programme.
Some of these data appear in the metadata xml that get_iplayer creates when the --metadata option is specified, but some of it is discarded.
Since the BBC have stated that these files may become unavailable soon, it would be useful to grab the information before it's lost—particularly for channels that consist mainly of repeats such as BBC Four, CBBC, CBeebies and BBC Radio 4 Extra. A user may not want to download a programme now, but may want to keep the data to re-consider when it is inevitably repeated. It would also prove useful in general for when a user wants to search their local download folder by actor or writer, for example. The credits are available in the version jsons, but get_iplayer currently discards these data.
The dumped files could be saved alongside the downloaded programme and could be named by appending a suitable suffix to the --file-prefix. For example, suggestions for file-prefix suffixes for a clip:
- <_pid>.json
- <_pid>_playlist.json
- <_pid><_version>_<version_id>.json
- <_pid>_<parent_kind>_<parent_id>.json
Where parent_kind is one of episode, series or brand. And with similar suffixes for grandparent and great-grandparent where these exist.
The option could also include a dump to a text file of the stream information for the download. This information is currently available through the --streaminfo option, but this has to be run separately from the download command.