[mythtv-commits] Ticket #10325: Modify mythlink.pl to allow relative file names to be used in the links

MythTV noreply at mythtv.org
Thu Dec 27 22:40:05 UTC 2012


#10325: Modify mythlink.pl to allow relative file names to be used in the links
----------------------------------------+----------------------------
 Reporter:  Nick Martin <njm@…>         |          Owner:  mdean
     Type:  Patch - Feature             |         Status:  accepted
 Priority:  minor                       |      Milestone:  unknown
Component:  Contributed Scripts & Apps  |        Version:  0.24-fixes
 Severity:  medium                      |     Resolution:
 Keywords:  mythlink.pl relative        |  Ticket locked:  0
----------------------------------------+----------------------------

Comment (by mythtvorg@…):

 There is a bug in this patch!
 [[BR]]

 The added line:

 {{{
 $local_path = File::Spec->abs2rel($local_path, $dest);
 }}}

 Should be:

 {{{
 $local_path = File::Spec->abs2rel($local_path, $dirname);
 }}}

 Because $name may be of form "tv_show/episode" in which case the final
 directory will be attached to $name and missing from $dest.[[BR]]

 Luckily, the existing code defines already: my $directory =
 dirname("$dest/$name");

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10325#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list