Saved Filename options
Rob Dixon
rob.dixon at gmx.com
Mon Feb 4 09:01:35 EST 2013
The --fileprefix option is fairly dumb, and won't do anything more than
just include the named fields into the pattern you specify.
Something using the --command option would be possible, but I can't get
the command-line processor to pass the value of <filename> through on a
Windows system.
You ought to be able to say something like
--command "perl -e \"($new = $old = shift) =~ s/\-+\././; rename
$old, $new\" \"<filename>\""
but no matter what I do I get
The system cannot find the path specified.
from the command processor, even before get_iplayer gets a look at it.
Rob
On 04/02/2013 11:53, YelloYeti wrote:
> A rather trivial question, but hopefully someone can come up with a
> solution:
>
> my options file has the entry:
> fileprefix <nameshort>-<episodeshort>-<senum>
>
> Which when I grab an episode of a series gives me exactly what I want.
>
> When I grab a 'one-off' programme, i.e. there is no series/episode, I
> end up with a file called name--.mp4
>
> Is there some invocation I can use in the options file which will
> automagically get rid of the trailing '-' characters?
>
> YY
>
>
>
> _______________________________________________
> get_iplayer mailing list
> get_iplayer at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/get_iplayer
More information about the get_iplayer
mailing list