These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

How do I omit separator in file prefix if "episode" substitution parameter is empty?

user-1773

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!

user-30

user-1773

Many thanks!

These forums are archived

See this post for further info