[ANSWERED] How do I negate --metadata stored in preferences?
#1
I'm running get_iplayer 3.07.0 from a Windows 7 command prompt.

I'm probably being very stupid and missing something obvious, but how do I negate the --metadata option that is stored in my preferences for a one-off get_iplayer download or in a preset?  (I usually like to download the metadata xml, which is why it's in my preferences.)

First, my relevant preferences entry:
Code:
C:\>get_iplayer --prefs-show | findstr /i /r "^Options metadata"

get_iplayer Output:

Options in 'path\to\.get_iplayer\options'
       metadata = generic

Now, as an example, I'll try setting up a preset called nometa to use when I don't want metadata downloaded. For this attempt I use the obvious (to me) option --no-metadata
Code:
C:\>get_iplayer -z nometa --prefs-add --no-metadata

But, as you can see, this adds a negated --metadata-only option instead of a negated --metadata option:

get_iplayer Output:

INFO: Using user options preset 'nometa'
INFO: Added option 'metadataonly' = '0'
INFO: Options file path\to\.get_iplayer\presets\nometa updated

Next, I tried manually creating the preset:
Code:
C:\>echo metadata ^0>path\to\.get_iplayer\presets\nometa
Which creates the nometa preset file with the following content.
Code:
C:\>type path\to\.get_iplayer\presets\nometa
metadata 0
Which get_iplayer accepts:
Code:
C:\>get_iplayer -z nometa --prefs-show

get_iplayer Output:

INFO: Using user options preset 'nometa'
Options in 'path\to\.get_iplayer\presets\nometa'
       metadata = 0

Unfortunately, this doesn't work either as the third from bottom line of output from the following 10s download of a radio programme shows.
Code:
C:\>get_iplayer -z nometa --type radio --stop 10 --pid b09jqdst

get_iplayer Output:

INFO: Using user options preset 'nometa'

Matches:
46267:  Profile - Sarah Mullally, BBC Radio 4, b09jqdst
INFO: 1 matching programmes
INFO: Downloading radio: 'Profile - Sarah Mullally (b09jqdst) [original]'
INFO: Downloaded: 0.52 MB (00:00:12) @ 41294.77 Mb/s (dafhigh1) [audio]
INFO: Converting to M4A
INFO: Downloading thumbnail
INFO: Tagging M4A
INFO: Writing metadata
INFO: Thumbnail file already exists: path\to\radiooutput\Profile\Sarah Mullally_b09jqdst_original.jpg
INFO: Use --overwrite to re-download
(The thumbnail is downloaded because I have the --thumb option in my preferences.)

Any ideas, anyone?

Thanks.
#2
(23-12-2017, 09:45 PM)User 04 Wrote: I'm probably being very stupid and missing something obvious, but how do I negate the --metadata option that is stored in my preferences for a one-off get_iplayer download or in a preset?
You can't. Just delete the file you don't want after download.
#3
--no-metadata option added in v3.09
#4
Thanks Dinky.

That will save the occasional unnecessary download.