From: Ralph Corderoy
Sent: Monday, June 5, 2017 11:38

In another part of the code there is a variable sanitize_mode which
can have values between 0 and 4 to denote different treatment for
sanitising file and directory names, and I haven't worked out how that
gets set.

$sanitize_mode is set at the start of substitute() from the second
parameter to that function, with a default of 0 if that either doesn't
exist, e.g. substitute('foo'), or is the value `undef'.

I think the call where it's passed as 1 is

  # Don't create subdir if we are only testing recordings
 >  # Create a subdir for programme sorting option
 >  elsif ( $opt->{subdir} ) {
> my $subdir = $prog->substitute( $opt->{subdirformat} || '<longname>', 1 );

Thanks for that. In fact I have been looking in the wrong place. I did not read the OP carefully enough. The problem with / in a programme name occurs when the --subdir option is used. In Windows for a programme with a <name>
Vets 24/7: Series 4
get_iplayer creates a sub-directory called
\Vets_24\7_Series_4\
which is the same behaviour as was complained of in Linux.



_______________________________________________
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer

Reply via email to