I'm having issues changing my filename prefixes, I'm using this command:
Code:
get_iplayer â-prefs-add â-fileprefix <firstbcast><_name><_senum>
I get the error
Code:
"< was unexpected at this time"
What have I got wrong?
The syntax for the file prefix command is
.
Note the hyphen/dash in the middle.
Thanks for that but still no joy:
Code:
C:\Program Files\get_iplayer>get_iplayer --prefs-add --file-prefix <firstbcast><_name><_senum>
< was unexpected at this time.
You can specify it with or without the hyphen. You need to enclose the argument to
in double quotes:
Code:
get_iplayer --prefs-add --file-prefix "<firstbcast><_name><_senum>"
Angle brackets are shell metacharacters and thus must be quoted to prevent evaluation by the Windows command shell.
Just noticed my copy and paste seems to have merged the double dashes, there's a double dash before prefs-add and file-prefix
Quote:<div class="d4p-bbp-quote-title">Quote:</div>You can specify it with or without the hyphen. You need to enclose the argument to in double quotes:
Code:
get_iplayer â-prefs-add â-file-prefix "<firstbcast><_name><_senum>"
Angle brackets are shell metacharacters and thus must be quoted to prevent evaluation by the Windows command shell.
That's given me:
Code:
C:\Program Files\get_iplayer>get_iplayer --prefs-add --file-prefix "<firstbcast><_name><_senum>"
get_iplayer v2.83, Copyright (C) 2008-2010 Phil Lewis
This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
This is free software, and you are welcome to redistribute it under certain
conditions; use --conditions for details.
INFO: 0 Matching Programmes
Quote:Quote:You can specify it with or without the hyphen. You need to enclose the argument to in double quotes:
Ah yes, you do. In my examples in the guide I also used a = sign like so:
Code:
get_iplayer â-prefs-add â-file-prefix="<firstbcast><_name><_senum>"
Not sure if that is required too?
@tahir: You can check to see if it was added to your preferences by viewing them using the following command:
Code:
get_iplayer --prefs-show
Further, you can highlight text when entering it in the input box here on the forum and hit the 'code' button, which will wrap the text in backticks and display it neatly without altering it in (almost) any way. This is how you avoid Wordpress mashing up your double hyphens etc.
You can use either equals sign or space to separate option from value.
@tahir: You copied from my earlier post, where I neglected to replace the em-dashes inserted by WordPress. I've corrected my earlier post. Make sure the options are prefixed by double-hyphens.
Thanks guys, this has worked:
Code:
get_iplayer --prefs-add --file-prefix="<firstbcast><_name><_senum>"
Now that I've got it working....
I really wanted just yyyymmdd_name_senum, is that possible?
Looks like I need to use <firstbcastdate> but this doesn't add anything to the filename:
firstbacst: 2014-01-21T104500Z_15_Minute_Drama_2.m4a
firstbcastdate: _15_Minute_Drama_1.m4a
You need to upgrade to latest get_iplayer v2.85 to make use of
. I see now from earlier post that you are two versions behind.
Thanks dp, will do that now