I want a different format for firstbcastdate field in output file name

I am trying to get BBC Click Episodes.

I want to add EPS to saved like so (UTC date):

07/10/2017 - Japan: Seeing Things You Wouldn't Believe


However first broadcast date is wrong.

Currently adding it to my PVR like so:

get_iplayer --pvr-add="Click" Click --exclude="Short Edition" --tvmode=best --file-prefix="<name> - <episode>" --output "/var/data/Downloads/TV/"
The image you uploaded shows details for a different episode , about school shootings , not the Japanese one.
Different eps same show.

Firstbroadcast date is 2017-10-07 , which is the day it was broadcast on. ( 7th October )
I am confused where you are seeing the incorrect info , it looks like it is correct to me.
I added it with:

get_iplayer --pvr-add="Click" Click --exclude="Short Edition" --tvmode=best --file-prefix="<nameshort>-<firstbcastdate>-<episodeshort>" --output "/var/data/Downloads/TV/"

Which gives me:


However, I want date format to be UTC:

Click-16-09-2017 - School Shootings..

Ideally I want it saved like so:

Click - 2017x35 - 16-09-2017 - School Shootings.mp4
That is not what "UTC" means (Google is your friend here). As to the format for <firstbcastdate> you want in the file name, that is not available. get_iplayer just uses the format provided in BBC metadata.
This is true, sorry didn't mean UTC.

I got it fixed with get_iplayer --pvr-add="Click" Click --exclude="Short Edition" --tvmode=best --file-prefix="<nameshort>-<firstbcastdate>-<episodeshort>" --output "/var/data/Downloads/TV/" and was able to use imdb to sort it.

(29-10-2017, 09:49 PM)bhc Wrote: This is true, sorry didn't mean UTC.

I got it fixed with  get_iplayer --pvr-add="Click" Click --exclude="Short Edition" --tvmode=best --file-prefix="<nameshort>-<firstbcastdate>-<episodeshort>" --output "/var/data/Downloads/TV/" and was able to use imdb to sort it.


As detailed in the substitution parameters page in the documentation, to get first broadcast in DD-MM-YYYY you could use:


Not sure that using '/' is wise for filenames as it's the Unix directory delimiter.

Also, if you can't be sure that there will be a short episode description, and to avoid a floating '-', you can put the '-' inside the tag's <> to not print it if the tag is empty: <-episodeshort>

Possibly Related Threads…
Thread Author Replies Views Last Post
  Episode title must be included in --file-prefix in order to appear in output filename louiscar 4 4,460 19-10-2018, 11:33 AM
Last Post: louiscar
  AtomicParsley left "temp" file in output directory 01110011 3 5,257 30-04-2018, 03:22 PM
Last Post: Kevingc
  [2.97] Podcasts: ERROR: Cannot write or append (because output file name is invalid) 2dmartin 22 25,114 04-02-2017, 03:32 PM
Last Post: dinky
  How to Select Output Format? JonTheNiceGuy 1 2,471 03-02-2017, 11:42 AM
Last Post: dinky