How do I omit separator in file prefix if "episode" substitution parameter is empty?
#1
Hi all,
I've changed my default output filename from:
<name>_-_<episode>_<pid>_<version>
to:
<name>_-_<episode>

and that generally gives me much nicer looking filenames.

However when recording programmes which have no <episode> info (e.g. one-off programmes), it gives me an awkward looking filename:
someprogramme_-_.mp4

Is there anyway I can avoid this? i.e. have a different naming convention when <episode> is null???
I've defined a preset for this called "single" (for downloading single episodes) and have preset the output filename to simply <name>, but I was wondering if anyone had a more elegant solution that doesn't require using presets?

Many thanks!
#2
Have a read of the wiki:

https://github.com/get-iplayer/get_iplay...separators
#3
Many thanks!


Possibly Related Threads...
Thread Author Replies Views Last Post
  Help with File Naming Strategy using Substitution Parameters D6MCK 3 1,759 07-03-2019, 11:25 PM
Last Post: mrg9999
  Episode title must be included in --file-prefix in order to appear in output filename louiscar 4 2,521 19-10-2018, 11:33 AM
Last Post: louiscar
  What is a safe separator character for --listformat format strings? flypig 2 2,001 26-05-2018, 07:04 PM
Last Post: flypig
  How do I set a default file name prefix? jamesgjm 5 4,406 02-05-2017, 09:06 PM
Last Post: jamesgjm