These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Changing fileprefix

user-341

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?

user-30

The syntax for the file prefix command is
Code:
--file-prefix
.

Note the hyphen/dash in the middle.

user-341

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.

user-2

You can specify it with or without the hyphen. You need to enclose the argument to
Code:
--file-prefix
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.

user-341

Just noticed my copy and paste seems to have merged the double dashes, there's a double dash before prefs-add and file-prefix

user-341

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
Code:
--file-prefix
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

user-30

Quote:Quote:You can specify it with or without the hyphen. You need to enclose the argument to
Code:
--file-prefix
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.

user-2

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.

user-341

Thanks guys, this has worked:

Code:
get_iplayer --prefs-add --file-prefix="<firstbcast><_name><_senum>"

user-341

Now that I've got it working....

I really wanted just yyyymmdd_name_senum, is that possible?

user-2

You can get yyyy-mm-dd_name_senum. See:

https://squarepenguin.co.uk/wiki/documen...parameters

user-341

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

user-2

You need to upgrade to latest get_iplayer v2.85 to make use of
Code:
<firstbcastdate>
. I see now from earlier post that you are two versions behind.

user-341

Thanks dp, will do that now

These forums are archived

See this post for further info